summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitb1fcb9ae1555988ae716efc7b43dfefff0db4c2a (patch)
tree9e9ef54c2f042b7fbe11430761f082319a75098b /llvm/lib/Analysis/LoopPass.cpp
parentd3ccdfd04d9ec844ccb41375ff2249efa660d94f (diff)
downloadbcm5719-llvm-b1fcb9ae1555988ae716efc7b43dfefff0db4c2a.tar.gz
bcm5719-llvm-b1fcb9ae1555988ae716efc7b43dfefff0db4c2a.zip
Fix thinko.
llvm-svn: 34528
Diffstat (limited to 'llvm/lib/Analysis/LoopPass.cpp')
-rw-r--r--llvm/lib/Analysis/LoopPass.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/LoopPass.cpp b/llvm/lib/Analysis/LoopPass.cpp
index 26e50615640..4d2e2906082 100644
--- a/llvm/lib/Analysis/LoopPass.cpp
+++ b/llvm/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();
}
};
OpenPOWER on IntegriCloud