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
This commit is contained in:
Chris Lattner 2001-12-05 19:41:33 +00:00
parent 2dc48bd788
commit 4753bf21a4

View File

@ -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;
}
}