[llvm] [InlineSpiller] Do not fold undef copies (PR #147392)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 7 21:20:26 PDT 2025


================
@@ -946,6 +946,9 @@ foldMemoryOperand(ArrayRef<std::pair<MachineInstr *, unsigned>> Ops,
     if (MO.isUse() && !MO.readsReg() && !MO.isTied())
       continue;
 
+    if (MI->isCopy() && MI->getOperand(1).isUndef())
----------------
arsenm wrote:

Oh, I now see in the other PR, this is from hacking up the failed ranges. Can you add the additional context to the commit message? There also might still be a better way to do this at the failure point 

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


More information about the llvm-commits mailing list