From 5023aa58cae8a5ed8e0bc3eae325843d926726c4 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Wed, 30 Apr 2008 07:16:33 +0000 Subject: [PATCH] This condition got inverted accidentally. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50473 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/LoopDeletion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/LoopDeletion.cpp b/lib/Transforms/Scalar/LoopDeletion.cpp index 4619ee78514..763060c092c 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 -- 2.34.1