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 | 9fff2187a21f765ed87a25c48552a6942450f3e2 (patch) | |
tree | 5185768d65b223ff043ef1c1f298769df0dd976f /lib/Transforms/Scalar/IndVarSimplify.cpp | |
parent | 321a813c536e2f1f2f05bbe78a7fbf64046f0557 (diff) | |
download | external_llvm-9fff2187a21f765ed87a25c48552a6942450f3e2.tar.gz external_llvm-9fff2187a21f765ed87a25c48552a6942450f3e2.tar.bz2 external_llvm-9fff2187a21f765ed87a25c48552a6942450f3e2.zip |
Set Changed properly after calling DeleteDeadPHIs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92735 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 5273e31483..ce1307c8df 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/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; |