@@ -2089,22 +2089,21 @@ bool BranchFolder::HoistCommonCodeInSuccs(MachineBasicBlock *MBB) {
2089
2089
// both branches. FIXME: We could probably try harder to preserve some debug
2090
2090
// instructions (but at least this isn't producing wrong locations).
2091
2091
MachineInstrBuilder MIRBuilder (*MBB->getParent (), Loc);
2092
- auto HoistAndKillDbgInstr =
2093
- [MBB, Loc](MachineBasicBlock::iterator DI) {
2094
- assert (DI->isDebugInstr () && " Expected a debug instruction" );
2095
- if (DI->isDebugRef ()) {
2096
- const TargetInstrInfo *TII =
2097
- MBB->getParent ()->getSubtarget ().getInstrInfo ();
2098
- const MCInstrDesc &DBGV = TII->get (TargetOpcode::DBG_VALUE);
2099
- DI = BuildMI (*MBB->getParent (), DI->getDebugLoc (), DBGV, false , 0 ,
2100
- DI->getDebugVariable (), DI->getDebugExpression ());
2101
- MBB->insert (Loc, &*DI);
2102
- return ;
2103
- }
2092
+ auto HoistAndKillDbgInstr = [MBB, Loc](MachineBasicBlock::iterator DI) {
2093
+ assert (DI->isDebugInstr () && " Expected a debug instruction" );
2094
+ if (DI->isDebugRef ()) {
2095
+ const TargetInstrInfo *TII =
2096
+ MBB->getParent ()->getSubtarget ().getInstrInfo ();
2097
+ const MCInstrDesc &DBGV = TII->get (TargetOpcode::DBG_VALUE);
2098
+ DI = BuildMI (*MBB->getParent (), DI->getDebugLoc (), DBGV, false , 0 ,
2099
+ DI->getDebugVariable (), DI->getDebugExpression ());
2100
+ MBB->insert (Loc, &*DI);
2101
+ return ;
2102
+ }
2104
2103
2105
- DI->setDebugValueUndef ();
2106
- DI->moveBefore (&*Loc);
2107
- };
2104
+ DI->setDebugValueUndef ();
2105
+ DI->moveBefore (&*Loc);
2106
+ };
2108
2107
2109
2108
// TIB and FIB point to the end of the regions to hoist/merge in TBB and
2110
2109
// FBB.
0 commit comments