diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 3eb452c7901..8341053fca7 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -5391,16 +5391,6 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) { } if (Changed) return II; - } else if (DbgStopPointInst *SPI = dyn_cast(II)) { - // If this stoppoint is at the same source location as the previous - // stoppoint in the chain, it is not needed. - if (DbgStopPointInst *PrevSPI = - dyn_cast(SPI->getChain())) - if (SPI->getLineNo() == PrevSPI->getLineNo() && - SPI->getColNo() == PrevSPI->getColNo()) { - SPI->replaceAllUsesWith(PrevSPI); - return EraseInstFromFunction(CI); - } } else { switch (II->getIntrinsicID()) { default: break;