[llvm] [RISCV] postpone removal in initundef pass (PR #71661)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 14 10:27:31 PST 2023


================
@@ -290,6 +293,7 @@ bool RISCVInitUndef::runOnMachineFunction(MachineFunction &MF) {
   MRI = &MF.getRegInfo();
   TII = ST->getInstrInfo();
   TRI = MRI->getTargetRegisterInfo();
+  DeadInsts.clear();
----------------
topperc wrote:

Why not clear at the end?

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


More information about the llvm-commits mailing list