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

Kerry McLaughlin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 25 05:56:14 PDT 2021


kmclaughlin updated this revision to Diff 347653.
kmclaughlin marked 3 inline comments as done.
kmclaughlin added a comment.

- Moved the implementation of allowReordering() to LoopVectorizationLegality.cpp
- Added a comment above the new tests in strict-fadd.ll to explain why the CHECK-UNORDERED case should not vectorize


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.347653.patch
Type: text/x-patch
Size: 22708 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210525/021c704a/attachment.bin>


More information about the llvm-commits mailing list