[llvm] [DebugInfo][RemoveDIs] Handle DPValues at remaining dbg.value using sites (PR #73788)
Jeremy Morse via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 30 05:01:15 PST 2023
================
@@ -534,6 +539,17 @@ static bool rewriteSingleStoreAlloca(
}
}
+ // Duplicate implementation for non-instr storage of debug-info in
+ // DPValue objects.
+ for (DPValue *DPV : Info.DPUsers) {
+ if (DPV->isAddressOfVariable()) {
+ ConvertDebugDeclareToDebugValue(DPV, Info.OnlyStore, DIB);
+ DPV->eraseFromParent();
+ } else if (DPV->getExpression()->startsWithDeref()) {
+ DPV->eraseFromParent();
+ }
+ }
----------------
jmorse wrote:
SGTM, pushed up some tempatealization.
https://github.com/llvm/llvm-project/pull/73788
More information about the llvm-commits
mailing list