mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-04 02:47:25 +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 &&
|
||||
"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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user