From 674394077fe37ffb9b7d94b24d565bf844426c4b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 5 Dec 2001 19:41:33 +0000 Subject: [PATCH] Actually return true when a change has been made llvm-svn: 1425 --- llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index 3b64756cb196..d03b4f3f400d 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; } } -- GitLab