[clang] [llvm] [RISCV] Enabled debug entry support by default (PR #157703)

Jeremy Morse via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 11 06:58:19 PDT 2025


================
@@ -0,0 +1,74 @@
+;; Test RISC-V 64 bit:
+; RUN: llc -emit-call-site-info -stop-after=livedebugvalues -mtriple=riscv64-linux-gnu -o - %s | FileCheck %s --check-prefix=CHECK64
+; RUN: llc -force-instr-ref-livedebugvalues=1 -emit-call-site-info -stop-after=livedebugvalues -mtriple=riscv64-linux-gnu -o - %s | FileCheck %s --check-prefix=CHECK64
----------------
jmorse wrote:

To elaborate, there are two implementations of the `LiveDebugValues` pass, one for "old" DBG_VALUE instructions and the other for instruction referencing. I don't believe RISCV currently supports instruction referencing, thus there's no reason to pass `-force-instr-ref-livedebugvalues` to get coverage of both implementations -- you should be able to get away with deleting the RUN line.

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


More information about the llvm-commits mailing list