[llvm] [AArch64][CostModel] Reduce the cost of fadd reduction with fast flag (PR #108791)
Sushant Gokhale via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 24 01:13:12 PDT 2024
================
@@ -4153,6 +4153,47 @@ AArch64TTIImpl::getArithmeticReductionCost(unsigned Opcode, VectorType *ValTy,
switch (ISD) {
default:
break;
+ case ISD::FADD:
+ if (Type *EltTy = ValTy->getScalarType();
+ // FIXME: We would be restricting the input scalar type to following
+ // types since for some of the types, codegen might be different e.g.
+ // fp128. Also, for half types without fullfp16 support, the cost maybe
+ // still be higher than what is expected from codegen.
----------------
sushgokh wrote:
sure thanks.
https://github.com/llvm/llvm-project/pull/108791
More information about the llvm-commits
mailing list