diff options
| author | Dan Gohman <gohman@apple.com> | 2010-01-05 16:31:45 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-01-05 16:31:45 +0000 |
| commit | b5358003fb456867b7ee56dc15a1b205cb3f2d7f (patch) | |
| tree | d5ecdc4a4552319d6fddfeb306f5662678098fa4 /llvm | |
| parent | 28943873e66fcd1640062dd9b481c2b44ed4e397 (diff) | |
| download | bcm5719-llvm-b5358003fb456867b7ee56dc15a1b205cb3f2d7f.tar.gz bcm5719-llvm-b5358003fb456867b7ee56dc15a1b205cb3f2d7f.zip | |
Set Changed properly after calling DeleteDeadPHIs.
llvm-svn: 92735
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index 5273e314839..ce1307c8df3 100644 --- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -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; diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 85f7368fb33..fa820ed8e40 100644 --- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -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; } |

