[llvm] [RegAlloc] Account for use availability when applying rematerializable weight discount (PR #159180)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 19 19:16:24 PDT 2025


================
@@ -466,6 +466,10 @@ class LiveIntervals {
   /// have any segments or value numbers.
   LLVM_ABI void constructMainRangeFromSubranges(LiveInterval &LI);
 
+  /// \returns true if all registers used by \p OrigMI at \p OrigIdx are also
----------------
arsenm wrote:

The consistent thing would be to use SlotIndex arguments 

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


More information about the llvm-commits mailing list