[PATCH] D111555: [LoopVectorize] Add vector reduction support for fmuladd intrinsic

Rosie Sumpter via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 12 01:43:30 PST 2021


RosieSumpter updated this revision to Diff 386758.
RosieSumpter marked 2 inline comments as done.
RosieSumpter added a comment.

- Added a check that the reduction phi isn't one of the multiply operands of fmuladd to `RecurrenceDescriptor::isRecurrenceInstr`
- Added a test case to strict-fadd.ll for the above
- Used initializer list instead of `SmallVector<> FMulOps` when creating FMul VPInstruction
- Simplified assert in `LoopVectorizationPlanner::adjustRecipesForReductions`


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111555/new/

https://reviews.llvm.org/D111555

Files:
  llvm/include/llvm/Analysis/IVDescriptors.h
  llvm/lib/Analysis/IVDescriptors.cpp
  llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  llvm/lib/Transforms/Utils/LoopUtils.cpp
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
  llvm/test/Transforms/LoopVectorize/AArch64/scalable-strict-fadd.ll
  llvm/test/Transforms/LoopVectorize/AArch64/strict-fadd.ll
  llvm/test/Transforms/LoopVectorize/reduction-inloop.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111555.386758.patch
Type: text/x-patch
Size: 38924 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211112/ddbee22d/attachment.bin>


More information about the llvm-commits mailing list