llvm.org GIT mirror llvm / a85d2bb
Removed some junk and a std::ostream operator that was hanging around. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81041 91177308-0d34-0410-b5e6-96231b3b80d8 Lang Hames 11 years ago
1 changed file(s) with 0 addition(s) and 59 deletion(s). Raw diff Collapse all Expand all
215215 };
216216
217217 inline raw_ostream& operator<<(raw_ostream &os, MachineInstrIndex mi) {
218 mi.print(os);
219 return os;
220 }
221
222 inline std::ostream& operator<<(std::ostream &os, MachineInstrIndex mi) {
223218 mi.print(os);
224219 return os;
225220 }
612607 }
613608 }
614609
615 /* REMOVE_ME
616 /// addKill - Add a kill instruction index to the specified value
617 /// number.
618 static void addKill(VNInfo *VNI, MachineInstrIndex killIdx) {
619 assert(killIdx.isUse() && "Kill must be a use.");
620 if (VNI->kills.empty()) {
621 VNI->kills.push_back(killIdx);
622 } else {
623 VNInfo::KillSet::iterator
624 I = std::lower_bound(VNI->kills.begin(), VNI->kills.end(), killIdx);
625 VNI->kills.insert(I, killIdx);
626 }
627 }
628
629 /// removeKill - Remove the specified kill from the list of kills of
630 /// the specified val#.
631 static bool removeKill(VNInfo *VNI, MachineInstrIndex Kill) {
632
633 VNInfo::KillSet::iterator
634 I = std::lower_bound(VNI->kills.begin(), VNI->kills.end(), Kill);
635 if (I != VNI->kills.end() && (*I == Kill)) {
636 VNI->kills.erase(I);
637 return true;
638 }
639 return false;
640
641 }
642
643
644
645 /// removeKills - Remove all the kills in specified range
646 /// [Start, End] of the specified val#.
647 static void removeKills(VNInfo *VNI, MachineInstrIndex Start,
648 MachineInstrIndex End) {
649
650 VNInfo::KillSet &kills = VNI->kills;
651
652 VNInfo::KillSet::iterator
653 I = std::lower_bound(kills.begin(), kills.end(), Start);
654 VNInfo::KillSet::iterator
655 E = std::upper_bound(kills.begin(), kills.end(), End);
656 kills.erase(I, E);
657 }
658
659
660 /// isKill - Return true if the specified index is a kill of the
661 /// specified val#.
662 static bool isKill(const VNInfo *VNI, MachineInstrIndex Kill) {
663 VNInfo::KillSet::const_iterator
664 I = std::lower_bound(VNI->kills.begin(), VNI->kills.end(), Kill);
665 return I != VNI->kills.end() && (*I == Kill);
666 }
667 */
668
669610 /// isOnlyLROfValNo - Return true if the specified live range is the only
670611 /// one defined by the its val#.
671612 bool isOnlyLROfValNo(const LiveRange *LR) {