Skip to content

Commit a1551fd

Browse files
committed
FastISel: remove EH_LABEL skipping code.
This was intended to skip past the EH_LABEL which is added at the top of a landingpad block. But, it is unnecessary because `LastLocalValue` is already set to point past the EH_LABEL in that case. Thus, currently, this is dead-code. I am removing it because it _also_ attempts to skip over EH_LABELs emitted around a call. Currently, this situation never arises, but it becomes harmful after a future in-progress commit.
1 parent 7bf1e44 commit a1551fd

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

llvm/lib/CodeGen/SelectionDAG/FastISel.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -405,11 +405,6 @@ void FastISel::recomputeInsertPt() {
405405
++FuncInfo.InsertPt;
406406
} else
407407
FuncInfo.InsertPt = FuncInfo.MBB->getFirstNonPHI();
408-
409-
// Now skip past any EH_LABELs, which must remain at the beginning.
410-
while (FuncInfo.InsertPt != FuncInfo.MBB->end() &&
411-
FuncInfo.InsertPt->getOpcode() == TargetOpcode::EH_LABEL)
412-
++FuncInfo.InsertPt;
413408
}
414409

415410
void FastISel::removeDeadCode(MachineBasicBlock::iterator I,

0 commit comments

Comments
 (0)