projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b26463
)
Fix thinko.
author
Devang Patel
<dpatel@apple.com>
Fri, 23 Feb 2007 18:05:55 +0000
(18:05 +0000)
committer
Devang Patel
<dpatel@apple.com>
Fri, 23 Feb 2007 18:05:55 +0000
(18:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34528
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/LoopPass.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/LoopPass.cpp
b/lib/Analysis/LoopPass.cpp
index 26e50615640ad6059e33d6c72789beba6f0431c2..4d2e2906082e2664cbd4d07d20a3aafcf2a92c76 100644
(file)
--- 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();
}
};