[llvm] [InstrRef] Preserve debug instr num in aarch64-ldst-opt. (PR #136009)
Felipe de Azevedo Piovezan via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 17 18:10:47 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
+static std::optional<MachineInstr *> findDebugInstrRef(MachineBasicBlock *MBB,
----------------
felipepiovezan wrote:
A pointer is already an optional entity, so `optional<ptr>` is redundant
https://github.com/llvm/llvm-project/pull/136009
More information about the llvm-commits
mailing list