[llvm] [AMDGPU] Propagate debug info to constant materialization instr (PR #192669)

Jeremy Morse via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 23 00:10:42 PDT 2026


================
@@ -4,9 +4,8 @@
 ; Repro for issue https://reviews.llvm.org/D149367#4619121
 ; Validates that `indirect ptr null` and a jump table can be used in the same function.
 
-; Verify branch labels match what's in the CodeView
-; CHECK:            .Ltmp2:
-; CHECK-NEXT:       jmpq    *%{{.*}}
+; Verify the jmpq exists in the code section
+; CHECK:            jmpq    *%{{.*}}
----------------
jmorse wrote:

I think this requires more investigation as it loses coverage that could permit a regression.  The test as written is ensuring the CodeView debug-info documenting the branch points at the branch label. With the test update in this patch, that connection is no longer guaranteed: the branch records just have to point at /a/ label, not a specific one.

I'm reasonably confident that, like the other test changes, it's just that some positions have been re-numbered, and perhaps there are different directives above the jmpq. You probably just need to add more CHECK lines to cover the area from the ".Ltmp" label to the jmpq. 

https://github.com/llvm/llvm-project/pull/192669


More information about the llvm-commits mailing list