aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/LoopPass.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-02-23 18:05:55 +0000
committerDevang Patel <dpatel@apple.com>2007-02-23 18:05:55 +0000
commit5b9e8d6aab594cce24cc3641f8127fcdb3985c0c (patch)
treef27547cecaff86944af0655f00ebbe21163d5507 /lib/Analysis/LoopPass.cpp
parent4b2646326ba6f14addf5498cbf6aefd273a4556e (diff)
Fix thinko.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34528 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LoopPass.cpp')
-rw-r--r--lib/Analysis/LoopPass.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/LoopPass.cpp b/lib/Analysis/LoopPass.cpp
index 26e5061564..4d2e290608 100644
--- a/lib/Analysis/LoopPass.cpp
+++ b/lib/Analysis/LoopPass.cpp
@@ -26,7 +26,8 @@ namespace llvm {
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();
}
};