[llvm] [RegisterCoalescer] Mark implicit-defs of super-registers as dead in remat (PR #159110)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 17 18:50:33 PDT 2025


================
@@ -1475,7 +1475,8 @@ bool RegisterCoalescer::reMaterializeTrivialDef(const CoalescerPair &CP,
   // The implicit-def of the super register may have been reduced to
   // subregisters depending on the uses.
 
-  bool NewMIDefinesFullReg = false;
+  TinyPtrVector<MachineOperand *> NewMIImpDefDestReg;
----------------
arsenm wrote:

Could also track op index instead 

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


More information about the llvm-commits mailing list