[llvm] [RegAlloc] Account for use availability when applying rematerializable weight discount (PR #159180)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 22 04:44:56 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
----------------
lukel97 wrote:
Agreed. I moved it into VirtRegAuxInfo so it can sit alongside isRematerializable. Open to other suggestions
https://github.com/llvm/llvm-project/pull/159180
More information about the llvm-commits
mailing list