diff options
| -rw-r--r-- | llvm/lib/CodeGen/CodePlacementOpt.cpp | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/llvm/lib/CodeGen/CodePlacementOpt.cpp b/llvm/lib/CodeGen/CodePlacementOpt.cpp index 919ee54fb3f..383098e11ef 100644 --- a/llvm/lib/CodeGen/CodePlacementOpt.cpp +++ b/llvm/lib/CodeGen/CodePlacementOpt.cpp @@ -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()) { | 

