[llvm] [MachineLateInstrsCleanup] Reuse redundant spill-slot reloads (PR #220180)

Anup Kumar via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 11 13:47:16 PDT 2026


================
@@ -168,15 +177,63 @@ void MachineLateInstrsCleanup::removeRedundantDef(MachineInstr *MI) {
   ++NumRemoved;
 }
 
+// Return true if MI is a spill-slot reload that does not store and has
+// exactly one memory operand. If FI is non-null and that memory operand names
----------------
anupkum-sgs wrote:

Yeah , i need to take care of it ; the idea is that caller will only use FI when it returns true and in that case FI is assigned. 
I will think upon it if there is any better way.

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


More information about the llvm-commits mailing list