[PATCH] D101836: [LoopVectorize] Enable strict reductions when allowReordering() returns false

Kerry McLaughlin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 17 06:04:18 PDT 2021


kmclaughlin updated this revision to Diff 345849.
kmclaughlin marked 2 inline comments as done.
kmclaughlin added a comment.

- Removes `HasExactRdxVar` from canVectorizeFPMath() and instead returns the result from `all_of(getReductionVars()...`
- Reduce the number of RUN lines in the tests


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

https://reviews.llvm.org/D101836

Files:
  llvm/include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h
  llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/test/Transforms/LoopVectorize/AArch64/scalable-strict-fadd.ll
  llvm/test/Transforms/LoopVectorize/AArch64/strict-fadd.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101836.345849.patch
Type: text/x-patch
Size: 57090 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210517/c975db5a/attachment.bin>


More information about the llvm-commits mailing list