mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-15 18:49:51 +00:00
Don't bother cleaning up if there's nothing to clean up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91288 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6dc1ef3923
commit
a77d588c75
@ -2754,15 +2754,15 @@ bool LoopStrengthReduce::runOnLoop(Loop *L, LPPassManager &LPM) {
|
||||
// After all sharing is done, see if we can adjust the loop to test against
|
||||
// zero instead of counting up to a maximum. This is usually faster.
|
||||
OptimizeLoopCountIV(L);
|
||||
|
||||
// We're done analyzing this loop; release all the state we built up for it.
|
||||
IVsByStride.clear();
|
||||
|
||||
// Clean up after ourselves
|
||||
if (!DeadInsts.empty())
|
||||
DeleteTriviallyDeadInstructions();
|
||||
}
|
||||
|
||||
// We're done analyzing this loop; release all the state we built up for it.
|
||||
IVsByStride.clear();
|
||||
|
||||
// Clean up after ourselves
|
||||
if (!DeadInsts.empty())
|
||||
DeleteTriviallyDeadInstructions();
|
||||
|
||||
// At this point, it is worth checking to see if any recurrence PHIs are also
|
||||
// dead, so that we can remove them as well.
|
||||
DeleteDeadPHIs(L->getHeader());
|
||||
|
Loading…
x
Reference in New Issue
Block a user