[llvm] [RISCV][CostModel] Estimate cost of llvm.vector.reduce.fmaximum/fminimum (PR #80697)
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 15 12:22:46 PDT 2024
================
@@ -1001,6 +1001,53 @@ RISCVTTIImpl::getMinMaxReductionCost(Intrinsic::ID IID, VectorType *Ty,
return getArithmeticReductionCost(Instruction::And, Ty, FMF, CostKind);
}
+ if (IID == Intrinsic::maximum || IID == Intrinsic::minimum) {
+ SmallVector<unsigned, 5> SplitOps;
----------------
preames wrote:
Can you subset this patch to the case where LT.first == 1? The splitting logic still looks too conservative here, but let's separate that discussion off.
https://github.com/llvm/llvm-project/pull/80697
More information about the llvm-commits
mailing list