Can't combine anymore - we don't have a chain through llvm.dbg intrinsics.

llvm-svn: 26992
This commit is contained in:
Jim Laskey 2006-03-23 18:10:42 +00:00
parent cf0166fbeb
commit 83f99115db
1 changed files with 0 additions and 10 deletions

View File

@ -5391,16 +5391,6 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) {
}
if (Changed) return II;
} else if (DbgStopPointInst *SPI = dyn_cast<DbgStopPointInst>(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<DbgStopPointInst>(SPI->getChain()))
if (SPI->getLineNo() == PrevSPI->getLineNo() &&
SPI->getColNo() == PrevSPI->getColNo()) {
SPI->replaceAllUsesWith(PrevSPI);
return EraseInstFromFunction(CI);
}
} else {
switch (II->getIntrinsicID()) {
default: break;