aboutsummaryrefslogtreecommitdiffstats
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
commit3c76b4f9fab950a79bbdfb11cd44e101010d32f3 (patch)
treea5b4973f428b4978e74fed8f76450d857c024892
parent5af8a917216cf7102fc3da63ad886f99f3c1aab1 (diff)
downloadexternal_llvm-3c76b4f9fab950a79bbdfb11cd44e101010d32f3.zip
external_llvm-3c76b4f9fab950a79bbdfb11cd44e101010d32f3.tar.gz
external_llvm-3c76b4f9fab950a79bbdfb11cd44e101010d32f3.tar.bz2
This condition got inverted accidentally.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50473 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/LoopDeletion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LoopDeletion.cpp b/lib/Transforms/Scalar/LoopDeletion.cpp
index 4619ee7..763060c 100644
--- a/lib/Transforms/Scalar/LoopDeletion.cpp
+++ b/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