[PATCH] D125987: [SLP] Account for cost of removing FMA opportunities by horizontal reduction
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 25 09:23:26 PDT 2022
RKSimon added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:9668
+void SLPVectorizerPass::adjustForFMAs(InstructionCost &Cost,
+ ArrayRef<Value *> &VL) {
----------------
ABataev wrote:
> Can this be hidden in the TTI completely anyhow? To avoid the extra calls of the adjustForFMAs completely in SLP.
+1 - the only problem if that this will probably end up having to be added on a target-by-target basis in getArithmeticInstrCost - hopefully we can provide a helper wrapper so its only a one-liner in each target.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125987/new/
https://reviews.llvm.org/D125987
More information about the llvm-commits
mailing list