Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1945,19 +1945,19 @@ bool RISCVInsertVSETVLI::insertVSETMTK(MachineBasicBlock &MBB,
.addImm(Log2_32(CurrInfo.getTWiden()) + 1);

Changed = true;
Register Reg = Op.getReg();
Op.setReg(RISCV::NoRegister);
Op.setIsKill(false);
if (LIS) {
LIS->InsertMachineInstrInMaps(*TmpMI);
LiveInterval &LI = LIS->getInterval(Op.getReg());
LiveInterval &LI = LIS->getInterval(Reg);

// Erase the AVL operand from the instruction.
LIS->shrinkToUses(&LI);
// TODO: Enable this once needVSETVLIPHI is supported.
// SmallVector<LiveInterval *> SplitLIs;
// LIS->splitSeparateComponents(LI, SplitLIs);
}

Op.setReg(RISCV::NoRegister);
Op.setIsKill(false);
}
return Changed;
}
Expand Down