Skip to content

Commit ee39684

Browse files
committed
Reset DefLI's weight so it's no longer marked as unspillable
The weight will be recalculated so we can just stick in 0.
1 parent ada6779 commit ee39684

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,6 +1614,8 @@ bool RISCVCoalesceVSETVLI::runOnBasicBlock(MachineBasicBlock &MBB) {
16141614
LiveInterval::Segment S(MISlot, DefLI.beginIndex(), DefVNI);
16151615
DefLI.addSegment(S);
16161616
DefVNI->def = MISlot;
1617+
// Mark DefLI as spillable if it was previously unspillable
1618+
DefLI.setWeight(0);
16171619

16181620
// DefReg may have had no uses, in which case we need to shrink
16191621
// the LiveInterval up to MI.

0 commit comments

Comments
 (0)