1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Set Changed properly after calling DeleteDeadPHIs.

llvm-svn: 92735
This commit is contained in:
Dan Gohman 2010-01-05 16:31:45 +00:00
parent e4a22bdd4a
commit fff95c0489
2 changed files with 2 additions and 2 deletions

View File

@ -438,7 +438,7 @@ bool IndVarSimplify::runOnLoop(Loop *L, LPPassManager &LPM) {
IU->AddUsersIfInteresting(cast<Instruction>(NewICmp->getOperand(0)));
// Clean up dead instructions.
DeleteDeadPHIs(L->getHeader());
Changed |= DeleteDeadPHIs(L->getHeader());
// Check a post-condition.
assert(L->isLCSSAForm() && "Indvars did not leave the loop in lcssa form!");
return Changed;

View File

@ -2723,7 +2723,7 @@ bool LoopStrengthReduce::runOnLoop(Loop *L, LPPassManager &LPM) {
// 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());
Changed |= DeleteDeadPHIs(L->getHeader());
return Changed;
}