mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-04 10:04:33 +00:00
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:
parent
69ea9d2308
commit
5023aa58ca
@ -179,7 +179,7 @@ bool LoopDeletion::runOnLoop(Loop* L, LPPassManager& LPM) {
|
|||||||
|
|
||||||
// Don't remove loops for which we can't solve the trip count.
|
// 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.
|
// They could be infinite, in which case we'd be changing program behavior.
|
||||||
if (L->getTripCount())
|
if (!L->getTripCount())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Loops with multiple exits or exits that don't dominate the latch
|
// Loops with multiple exits or exits that don't dominate the latch
|
||||||
|
Loading…
Reference in New Issue
Block a user