[llvm] [InlineSpiller][WIP] Hoist spills only when all of its subranges are available (PR #177703)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 24 12:13:14 PST 2026
================
@@ -1409,8 +1409,11 @@ bool HoistSpillHelper::isSpillCandBB(LiveInterval &OrigLI, VNInfo &OrigVNI,
for (const Register &SibReg : Siblings) {
LiveInterval &LI = LIS.getInterval(SibReg);
- VNInfo *VNI = LI.getVNInfoAt(Idx);
- if (VNI) {
+ if (!LI.getVNInfoAt(Idx))
+ continue;
+ if (all_of(LI.subranges(), [&](const LiveInterval::SubRange &SR) {
+ return SR.getVNInfoAt(Idx);
----------------
arsenm wrote:
Does it need to verify the value numbers are the same?
https://github.com/llvm/llvm-project/pull/177703
More information about the llvm-commits
mailing list