[llvm-commits] CVS: llvm/lib/Analysis/LoopPass.cpp

Devang Patel dpatel at apple.com
Fri Feb 23 10:06:12 PST 2007



Changes in directory llvm/lib/Analysis:

LoopPass.cpp updated: 1.7 -> 1.8
---
Log message:

Fix thinko.


---
Diffs of the changes:  (+2 -1)

 LoopPass.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/lib/Analysis/LoopPass.cpp
diff -u llvm/lib/Analysis/LoopPass.cpp:1.7 llvm/lib/Analysis/LoopPass.cpp:1.8
--- llvm/lib/Analysis/LoopPass.cpp:1.7	Fri Feb 23 11:53:17 2007
+++ llvm/lib/Analysis/LoopPass.cpp	Fri Feb 23 12:05:55 2007
@@ -26,7 +26,8 @@
 class LoopCompare {
 public:
   bool operator()( Loop *L1, Loop *L2) const {
-    return L1->getLoopDepth() > L2->getLoopDepth();
+    // Loops with highest depth has the highest priority.
+    return L1->getLoopDepth() < L2->getLoopDepth();
   }
 };
 






More information about the llvm-commits mailing list