From 0ced13ccd9d53ff2467b0689e4cd3132b7f5169e Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Wed, 30 Apr 2008 07:16:33 +0000 Subject: This condition got inverted accidentally. llvm-svn: 50473 --- llvm/lib/Transforms/Scalar/LoopDeletion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/Scalar/LoopDeletion.cpp') 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 -- cgit v1.2.3