Skip to content

Commit 8b57704

Browse files
[RISCV][VLOPT] Add vmv.x.s and vfmv.f.s to isVectorOpUsedAsScalarOp (#121588)
1 parent b48e5f0 commit 8b57704

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
@@ -935,6 +935,9 @@ static bool isVectorOpUsedAsScalarOp(MachineOperand &MO) {
935935
case RISCV::VFWREDOSUM_VS:
936936
case RISCV::VFWREDUSUM_VS:
937937
return MO.getOperandNo() == 3;
938+
case RISCV::VMV_X_S:
939+
case RISCV::VFMV_F_S:
940+
return MO.getOperandNo() == 1;
938941
default:
939942
return false;
940943
}

0 commit comments

Comments
 (0)