[llvm-commits] CVS: llvm/lib/CodeGen/LiveIntervals.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Tue Jul 20 03:20:14 PDT 2004
Changes in directory llvm/lib/CodeGen:
LiveIntervals.cpp updated: 1.97 -> 1.98
---
Log message:
Remove unneeded functor. LiveInterval has a < operator.
---
Diffs of the changes: (+1 -11)
Index: llvm/lib/CodeGen/LiveIntervals.cpp
diff -u llvm/lib/CodeGen/LiveIntervals.cpp:1.97 llvm/lib/CodeGen/LiveIntervals.cpp:1.98
--- llvm/lib/CodeGen/LiveIntervals.cpp:1.97 Mon Jul 19 10:16:53 2004
+++ llvm/lib/CodeGen/LiveIntervals.cpp Tue Jul 20 05:20:03 2004
@@ -179,16 +179,6 @@
return true;
}
-namespace {
- /// CompareIntervalStar - This is a simple comparison function for interval
- /// pointers. It compares based on their starting point.
- struct CompareIntervalStar {
- bool operator()(LiveInterval *LHS, LiveInterval* RHS) const {
- return LHS->start() < RHS->start();
- }
- };
-}
-
std::vector<LiveInterval*> LiveIntervals::addIntervalsForSpills(
const LiveInterval& li,
VirtRegMap& vrm,
@@ -282,7 +272,7 @@
// The proper way to fix this is to process all uses of the vreg before we
// process any defs. However, this would require refactoring the above
// blob of code, which I'm not feeling up to right now.
- std::sort(added.begin(), added.end(), CompareIntervalStar());
+ std::sort(added.begin(), added.end(), less_ptr<LiveInterval>());
return added;
}
More information about the llvm-commits
mailing list