mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Actually return true when a change has been made
llvm-svn: 1425
This commit is contained in:
parent
8ca0f9efd6
commit
d89106f96b
@ -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…
Reference in New Issue
Block a user