From 83f99115dbeb7b6a2788e80a3af316ad041eba25 Mon Sep 17 00:00:00 2001 From: Jim Laskey Date: Thu, 23 Mar 2006 18:10:42 +0000 Subject: Can't combine anymore - we don't have a chain through llvm.dbg intrinsics. llvm-svn: 26992 --- llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'llvm/lib/Transforms/Scalar/InstructionCombining.cpp') diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 3eb452c7901..8341053fca7 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/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; -- cgit v1.2.3