[llvm] [RISCV][CostModel] Correct the cost of some reductions (PR #118072)

via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 30 19:53:03 PST 2024


================
@@ -1556,15 +1563,15 @@ RISCVTTIImpl::getArithmeticReductionCost(unsigned Opcode, VectorType *Ty,
     break;
   case ISD::OR:
     SplitOp = RISCV::VOR_VV;
-    Opcodes = {RISCV::VMV_S_X, RISCV::VREDOR_VS, RISCV::VMV_X_S};
+    Opcodes = {RISCV::VREDOR_VS, RISCV::VMV_X_S};
----------------
LiqinWeng wrote:

done

https://github.com/llvm/llvm-project/pull/118072


More information about the llvm-commits mailing list