From 9f7cf20e60ea9c398c64cbadff776e58849a58f8 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 1 Sep 2011 01:18:33 +0000 Subject: [PATCH] Submitted this too early. llvm-svn: 138931 --- llvm/lib/Transforms/InstCombine/InstructionCombining.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp index 4eea2ff3951f..838678b9fab7 100644 --- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -1577,11 +1577,6 @@ bool InstCombiner::DoOneIteration(Function &F, unsigned Iteration) { while (Term != BB->begin()) { // Remove instrs bottom-up BasicBlock::iterator I = Term; --I; - // Don't remove the landingpad instruction. This should be removed - // only if its invokes are also removed. - if (isa(I)) - continue; - DEBUG(errs() << "IC: DCE: " << *I << '\n'); // A debug intrinsic shouldn't force another iteration if we weren't // going to do one without it.