Skip to content

Commit 5232e6f

Browse files
fixup! fix comment
1 parent e6f2468 commit 5232e6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,9 +1072,9 @@ RISCVVLOptimizer::getVLForUser(MachineOperand &UserOp) {
10721072
assert(RISCV::VRRegClass.hasSubClassEq(RC) &&
10731073
"Expect LMUL 1 register class for vector as scalar operands!");
10741074
LLVM_DEBUG(dbgs() << " Used this operand as a scalar operand\n");
1075-
// VMV_X_S and VFMV_F_S do not have a VL opt which would cause an assert
1076-
// assert failure if we called getVLOpNum. Therefore, we will set the
1077-
// CommonVL in that case as 1, even if it could have been set to 0.
1075+
// VMV_X_S and VFMV_F_S do not have a VL operand which would cause an assert
1076+
// failure if we called getVLOpNum. Therefore, we will return 1 in this
1077+
// case, even if it could have been set to 0.
10781078
if (!RISCVII::hasVLOp(Desc.TSFlags) || !RISCVII::hasSEWOp(Desc.TSFlags))
10791079
return MachineOperand::CreateImm(1);
10801080

0 commit comments

Comments
 (0)