mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-05 19:10:19 +00:00
Fix CodePlacementOpt::OptimizeIntraLoopEdges so that its return value
correctly indicates whether it changed the code. llvm-svn: 72038
This commit is contained in:
parent
51e9d81e72
commit
cc8d63fdef
@ -134,6 +134,7 @@ bool CodePlacementOpt::OptimizeIntraLoopEdges() {
|
||||
TII->RemoveBranch(*MBB);
|
||||
ChangedMBBs.insert(MBB);
|
||||
++NumIntraElim;
|
||||
Changed = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -231,6 +232,7 @@ bool CodePlacementOpt::OptimizeIntraLoopEdges() {
|
||||
TII->InsertBranch(*FtMBB, FtTBB, FtFBB, FtCond);
|
||||
ChangedMBBs.insert(FtMBB);
|
||||
}
|
||||
Changed = true;
|
||||
|
||||
// If BB is the loop latch, we may have a new loop headr.
|
||||
if (MBB == L->getLoopLatch()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user