Skip to content

Commit c4a252c

Browse files
committed
Add implicit VL use
1 parent 9104884 commit c4a252c

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
@@ -1541,6 +1541,8 @@ void RISCVInsertVSETVLI::convertToX0X0(MachineBasicBlock &MBB) {
15411541
MI.getOperand(0).setIsDead(true);
15421542
MI.getOperand(1).ChangeToRegister(RISCV::X0, /*isDef*/ false);
15431543
MI.getOperand(1).setIsKill(true);
1544+
MI.addOperand(MachineOperand::CreateReg(RISCV::VL, /*isDef*/ false,
1545+
/*isImp*/ true));
15441546
Info = MIInfo; // transferAfter can't handle x0,x0
15451547
continue;
15461548
}

0 commit comments

Comments
 (0)