mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
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:
parent
2dc48bd788
commit
4753bf21a4
@ -107,6 +107,7 @@ static bool TransformLoop(cfg::LoopInfo *Loops, cfg::Loop *Loop) {
|
|||||||
assert(IndVars.back().InductionType == InductionVariable::Cannonical &&
|
assert(IndVars.back().InductionType == InductionVariable::Cannonical &&
|
||||||
"Just inserted cannonical indvar that is not cannonical!");
|
"Just inserted cannonical indvar that is not cannonical!");
|
||||||
Cannonical = &IndVars.back();
|
Cannonical = &IndVars.back();
|
||||||
|
Changed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
@ -177,6 +178,7 @@ static bool TransformLoop(cfg::LoopInfo *Loops, cfg::Loop *Loop) {
|
|||||||
Header->getInstList().remove(IV->Phi);
|
Header->getInstList().remove(IV->Phi);
|
||||||
delete IV->Phi;
|
delete IV->Phi;
|
||||||
InsertPos--; // Deleted an instr, decrement insert position
|
InsertPos--; // Deleted an instr, decrement insert position
|
||||||
|
Changed = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user