[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:42 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)
----------------
arsenm wrote:

```suggestion
```

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


More information about the llvm-commits mailing list