Skip to content

Commit 532cbb1

Browse files
committed
Assert VLOutput from vleff is virtual too
1 parent 5cb4487 commit 532cbb1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,6 +1687,7 @@ void RISCVInsertVSETVLI::insertReadVL(MachineBasicBlock &MBB) {
16871687
MachineInstr &MI = *I++;
16881688
if (RISCV::isFaultFirstLoad(MI)) {
16891689
Register VLOutput = MI.getOperand(1).getReg();
1690+
assert(VLOutput.isVirtual());
16901691
if (!MRI->use_nodbg_empty(VLOutput))
16911692
BuildMI(MBB, I, MI.getDebugLoc(), TII->get(RISCV::PseudoReadVL),
16921693
VLOutput);

0 commit comments

Comments
 (0)