Merge pull request #39082 from mshockwave/dev-deprecate-debug-val-addr

[SIL][DebugInfo] PATCH 3/3: Deprecate debug_value_addr SIL instruciton
This commit is contained in:
Min-Yih Hsu
2021-09-01 09:14:29 -07:00
committed by GitHub
135 changed files with 623 additions and 677 deletions

View File

@@ -158,7 +158,7 @@ bool swift::isInstructionTriviallyDead(SILInstruction *inst) {
if (isa<MarkUninitializedInst>(inst))
return false;
if (isa<DebugValueInst>(inst) || isa<DebugValueAddrInst>(inst))
if (isa<DebugValueInst>(inst))
return false;
// These invalidate enums so "write" memory, but that is not an essential
@@ -756,9 +756,14 @@ getConcreteValueOfExistentialBoxAddr(SILValue addr, SILInstruction *ignoreUser)
break;
}
case SILInstructionKind::DeallocStackInst:
case SILInstructionKind::DebugValueAddrInst:
case SILInstructionKind::LoadInst:
break;
case SILInstructionKind::DebugValueInst:
if (!DebugValueInst::hasAddrVal(stackUser)) {
if (stackUser != ignoreUser)
return SILValue();
}
break;
case SILInstructionKind::StoreInst: {
auto *store = cast<StoreInst>(stackUser);
assert(store->getSrc() != stackLoc && "cannot store an address");