[llvm] [DEBUGINFO] Propagate debug metadata for sext SDNode. (PR #135971)
Orlando Cazalet-Hyams via llvm-commits
llvm-commits at lists.llvm.org
Fri May 2 02:40:41 PDT 2025
================
@@ -12,15 +12,8 @@ entry:
; foo(xyz);
; }
;
- ; Verify that debug info exists for "xyz" variable
- ;
- ; CHECK: DW_TAG_variable
- ; CHECK: .b8 120 // DW_AT_name
- ; CHECK-NEXT: .b8 121
- ; CHECK-NEXT: .b8 122
- ; CHECK-NEXT: .b8 0
- ; CHECK-NEXT: .b8 1 // DW_AT_decl_file
- ; CHECK-NEXT: .b8 6 // DW_AT_decl_line
+ ; CHECK-LABEL: Machine code for function test1
+ ; CHECK: DBG_VALUE %{{[0-9]+}}:int32regs, $noreg, !"xyz", !DIExpression(), debug-location !13; test.cu:2 line no:6
----------------
OCHyams wrote:
One final nit - please can you avoid hard coding the `debug-location` hard coded metadata number (you could use `[[#]]` or omit the rest of the line, etc). Same below. This reduces spurious failures if the metadata numbers shift around as a result of a different change.
https://github.com/llvm/llvm-project/pull/135971
More information about the llvm-commits
mailing list