This condition got inverted accidentally.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50473 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2008-04-30 07:16:33 +00:00
parent 69ea9d2308
commit 5023aa58ca

View File

@ -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