diff options
author | Chris Lattner <sabre@nondot.org> | 2001-12-05 19:41:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-12-05 19:41:33 +0000 |
commit | 4753bf21a4310a20ee1454e9dce48c87a06e8d27 (patch) | |
tree | 4a8ee705b750d3bc4a07ed44cf51aea8d547d76a /lib/Transforms/Scalar/IndVarSimplify.cpp | |
parent | 2dc48bd788baf3882c2e92407330f1b5d934ca8e (diff) |
Actually return true when a change has been made
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1425 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, 2 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 3b64756cb1..d03b4f3f40 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -107,6 +107,7 @@ static bool TransformLoop(cfg::LoopInfo *Loops, cfg::Loop *Loop) { assert(IndVars.back().InductionType == InductionVariable::Cannonical && "Just inserted cannonical indvar that is not cannonical!"); Cannonical = &IndVars.back(); + Changed = true; } #ifdef DEBUG @@ -177,6 +178,7 @@ static bool TransformLoop(cfg::LoopInfo *Loops, cfg::Loop *Loop) { Header->getInstList().remove(IV->Phi); delete IV->Phi; InsertPos--; // Deleted an instr, decrement insert position + Changed = true; } } |