[PATCH] D144800: [DebugInfo] Remove `dbg.addr` from CodeGen
Stephen Tozer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 27 02:28:14 PST 2023
StephenTozer accepted this revision.
StephenTozer added inline comments.
This revision is now accepted and ready to land.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:6090
case Intrinsic::dbg_declare: {
- // Debug intrinsics are handled seperately in assignment tracking mode.
+ // Debug intrinsics are handled separately in assignment tracking mode.
if (isAssignmentTrackingEnabled(*I.getFunction()->getParent()))
----------------
:+1:
================
Comment at: llvm/test/DebugInfo/X86/merge-equivalent-ranges.ll:31
store i32 %CUID, ptr %CUID.addr, align 4
call void @llvm.dbg.value(metadata ptr %CUID.addr, metadata !16, metadata !DIExpression(DW_OP_deref)), !dbg !17
call void @llvm.dbg.value(metadata ptr %CUID.addr, metadata !26, metadata !DIExpression(DW_OP_deref, DW_OP_stack_value)), !dbg !17
----------------
For the purposes of this test, we can also remove this line and the test for "Var1" above - since this test is testing that this range merges with the one that is being deleted, the test isn't meaningful anymore; ideally we'd have a good way to test this otherwise, but don't consider it a blocker on this patch.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144800/new/
https://reviews.llvm.org/D144800
More information about the llvm-commits
mailing list