[PATCH] D111630: [LoopVectorize][CostModel] Update cost model for fmuladd intrinsic

Rosie Sumpter via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 12 04:25:25 PDT 2021


RosieSumpter created this revision.
RosieSumpter added reviewers: david-arm, kmclaughlin, sdesmalen, dmgreen, spatel, Ayal.
Herald added a subscriber: hiraditya.
RosieSumpter requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch updates the cost model for ordered reductions so that a call
to the llvm.fmuladd intrinsic is modelled as a normal fmul instruction
plus the cost of an ordered fadd reduction.

This is a follow-up to D111555 <https://reviews.llvm.org/D111555>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D111630

Files:
  llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/test/Transforms/LoopVectorize/AArch64/scalable-strict-fadd.ll
  llvm/test/Transforms/LoopVectorize/AArch64/strict-fadd-cost.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111630.378958.patch
Type: text/x-patch
Size: 23526 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211012/989aa858/attachment.bin>


More information about the llvm-commits mailing list