Skip to content

Commit 8f29da7

Browse files
[RISCV][VLOPT] Add vmv.x.s and vfmv.f.s to isVectorOpUsedAsScalarOp
1 parent 0a26f9c commit 8f29da7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,9 @@ static bool isVectorOpUsedAsScalarOp(MachineOperand &MO) {
840840
case RISCV::VFWREDOSUM_VS:
841841
case RISCV::VFWREDUSUM_VS:
842842
return MO.getOperandNo() == 3;
843+
case RISCV::VMV_X_S:
844+
case RISCV::VFMV_F_S:
845+
return MO.getOperandNo() == 1;
843846
default:
844847
return false;
845848
}

0 commit comments

Comments
 (0)