summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/LoopDeletion.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-04-30 07:16:33 +0000
committerOwen Anderson <resistor@mac.com>2008-04-30 07:16:33 +0000
commit0ced13ccd9d53ff2467b0689e4cd3132b7f5169e (patch)
tree6de2bf3a08b01454dd06f3a5a3c6f975ea3c7ada /llvm/lib/Transforms/Scalar/LoopDeletion.cpp
parent2dc442667555eb650708d681ea64263800a100f6 (diff)
downloadbcm5719-llvm-0ced13ccd9d53ff2467b0689e4cd3132b7f5169e.tar.gz
bcm5719-llvm-0ced13ccd9d53ff2467b0689e4cd3132b7f5169e.zip
This condition got inverted accidentally.
llvm-svn: 50473
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopDeletion.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopDeletion.cpp2
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
OpenPOWER on IntegriCloud