[llvm] [InstrRef] Preserve debug instr num in aarch64-ldst-opt. (PR #136009)

Jeremy Morse via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 21 08:32:28 PDT 2025


================
@@ -965,6 +965,40 @@ static void updateDefinedRegisters(MachineInstr &MI, LiveRegUnits &Units,
       Units.addReg(MOP.getReg());
 }
 
+/// Find the DBG_INSTR_REF instruction that references the \p InstrNum
----------------
jmorse wrote:

For the record, there'll be one DBG_INSTR_REF for each variable that makes use of the value, so there could indeed be multiple.

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


More information about the llvm-commits mailing list