[llvm] [DAGCombiner] Preserve debug location of original load in fold (conv (load x)) (PR #160236)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 22 22:47:41 PDT 2025


================
@@ -0,0 +1,41 @@
+; RUN: llc -mtriple=amdgcn -mcpu=gfx942  < %s | FileCheck %s
+
+; CHECK-LABEL:  test:
+; CHECK:        .loc    1 8 16                          ; test.py:8:16
+; CHECK-NEXT:   s_load_dword
+
+; Function Attrs: alwaysinline mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite)
+define amdgpu_kernel void @test(ptr addrspace(1) inreg readonly captures(none) %0, ptr addrspace(1) inreg writeonly captures(none) %1, ptr addrspace(1) inreg readnone captures(none) %2, ptr addrspace(1) inreg readnone captures(none) %3) local_unnamed_addr #0 !dbg !4 {
+  %5 = tail call i32 @llvm.amdgcn.workitem.id.x(), !dbg !7
----------------
arsenm wrote:

Use named values in tests 

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


More information about the llvm-commits mailing list