mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-11 10:25:41 +00:00
Can't combine anymore - we don't have a chain through llvm.dbg intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26992 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -5391,16 +5391,6 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Changed) return II;
|
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 {
|
} else {
|
||||||
switch (II->getIntrinsicID()) {
|
switch (II->getIntrinsicID()) {
|
||||||
default: break;
|
default: break;
|
||||||
|
Reference in New Issue
Block a user