File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments