forked from OSchip/llvm-project
parent
2d1f11f743
commit
9f7cf20e60
|
@ -1577,11 +1577,6 @@ bool InstCombiner::DoOneIteration(Function &F, unsigned Iteration) {
|
||||||
while (Term != BB->begin()) { // Remove instrs bottom-up
|
while (Term != BB->begin()) { // Remove instrs bottom-up
|
||||||
BasicBlock::iterator I = Term; --I;
|
BasicBlock::iterator I = Term; --I;
|
||||||
|
|
||||||
// Don't remove the landingpad instruction. This should be removed
|
|
||||||
// only if its invokes are also removed.
|
|
||||||
if (isa<LandingPadInst>(I))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
DEBUG(errs() << "IC: DCE: " << *I << '\n');
|
DEBUG(errs() << "IC: DCE: " << *I << '\n');
|
||||||
// A debug intrinsic shouldn't force another iteration if we weren't
|
// A debug intrinsic shouldn't force another iteration if we weren't
|
||||||
// going to do one without it.
|
// going to do one without it.
|
||||||
|
|
Loading…
Reference in New Issue