Clean up the public interface of RegScavenger.
[oota-llvm.git] / lib / CodeGen / CodePlacementOpt.cpp
index 919ee54fb3f48752a7a7044872f8b5545663a0f7..383098e11efdc3d0b470b11803357c5abb208429 100644 (file)
@@ -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()) {