[llvm] [DebugInfo][InstrRef] Treat ORRWrr as a copy instr (PR #123102)

Adrian Prantl via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 15 12:35:28 PST 2025


================
@@ -0,0 +1,102 @@
+; RUN: llc -O2 -experimental-debug-variable-locations %s -stop-after=livedebugvalues -mtriple=arm64-apple-macosx15.0.0 -o - | FileCheck %s
+
+; CHECK: $w{{[0-9]+}} = ORRWrs $wzr, killed $w{{[0-9]+}}, 0
+; CHECK-NEXT: DBG_INSTR_REF !{{[0-9]+}}, !DIExpression(DW_OP_LLVM_arg, 0), dbg-instr-ref(3, 0), debug-location !{{[0-9]+}}
----------------
adrian-prantl wrote:

hardcoding the `3` here looks potentially fragile

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


More information about the llvm-commits mailing list