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 | 674394077fe37ffb9b7d94b24d565bf844426c4b (patch) | |
| tree | 46d0cbef63dc1d1da417e0e836d66cab1585442e /llvm/lib/Transforms | |
| parent | 8d16760c2123b68d6b9cf6c233fe55492be02839 (diff) | |
| download | bcm5719-llvm-674394077fe37ffb9b7d94b24d565bf844426c4b.tar.gz bcm5719-llvm-674394077fe37ffb9b7d94b24d565bf844426c4b.zip | |
Actually return true when a change has been made
llvm-svn: 1425
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index 3b64756cb19..d03b4f3f400 100644 --- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/llvm/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;      }    } | 

