Skip to content

Commit

Permalink
Add implicit VL use
Browse files Browse the repository at this point in the history
  • Loading branch information
lukel97 committed Apr 22, 2024
1 parent 9104884 commit c4a252c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1541,6 +1541,8 @@ void RISCVInsertVSETVLI::convertToX0X0(MachineBasicBlock &MBB) {
MI.getOperand(0).setIsDead(true);
MI.getOperand(1).ChangeToRegister(RISCV::X0, /*isDef*/ false);
MI.getOperand(1).setIsKill(true);
MI.addOperand(MachineOperand::CreateReg(RISCV::VL, /*isDef*/ false,
/*isImp*/ true));
Info = MIInfo; // transferAfter can't handle x0,x0
continue;
}
Expand Down

0 comments on commit c4a252c

Please sign in to comment.