mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 23:29:20 +00:00
No need to look through bitcasts for DbgInfoIntrinsic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94114 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e31dc355b2
commit
edd7966809
@ -615,11 +615,6 @@ Value *llvm::FindAvailableLoadedValue(Value *Ptr, BasicBlock *ScanBB,
|
||||
Instruction *Inst = --ScanFrom;
|
||||
if (isa<DbgInfoIntrinsic>(Inst))
|
||||
continue;
|
||||
// We skip pointer-to-pointer bitcasts, which are NOPs.
|
||||
// It is necessary for correctness to skip those that feed into a
|
||||
// llvm.dbg.declare, as these are not present when debugging is off.
|
||||
if (isa<BitCastInst>(Inst) && isa<PointerType>(Inst->getType()))
|
||||
continue;
|
||||
|
||||
// Restore ScanFrom to expected value in case next test succeeds
|
||||
ScanFrom++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user