[PATCH] D125987: [SLP] Account for cost of removing FMA opportunities by horizontal reduction

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 19 09:37:37 PDT 2022


ABataev added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:9675
+// the tree of multiplies.
+static InstructionCost getFMALossCost(const TargetTransformInfo *TTI,
+                                      Value *TreeRootOp, FastMathFlags FMF,
----------------
I think it must be a part of TTI::getArithmeticReductionCost


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