diff options
author | Owen Anderson <resistor@mac.com> | 2008-04-30 07:16:33 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-04-30 07:16:33 +0000 |
commit | 0ced13ccd9d53ff2467b0689e4cd3132b7f5169e (patch) | |
tree | 6de2bf3a08b01454dd06f3a5a3c6f975ea3c7ada /llvm/lib | |
parent | 2dc442667555eb650708d681ea64263800a100f6 (diff) | |
download | bcm5719-llvm-0ced13ccd9d53ff2467b0689e4cd3132b7f5169e.tar.gz bcm5719-llvm-0ced13ccd9d53ff2467b0689e4cd3132b7f5169e.zip |
This condition got inverted accidentally.
llvm-svn: 50473
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopDeletion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopDeletion.cpp b/llvm/lib/Transforms/Scalar/LoopDeletion.cpp index 4619ee78514..763060c092c 100644 --- a/llvm/lib/Transforms/Scalar/LoopDeletion.cpp +++ b/llvm/lib/Transforms/Scalar/LoopDeletion.cpp @@ -179,7 +179,7 @@ bool LoopDeletion::runOnLoop(Loop* L, LPPassManager& LPM) { // Don't remove loops for which we can't solve the trip count. // They could be infinite, in which case we'd be changing program behavior. - if (L->getTripCount()) + if (!L->getTripCount()) return false; // Loops with multiple exits or exits that don't dominate the latch |