[PATCH] D105632: [LV] Use lookThroughAnd with logical reductions

Kerry McLaughlin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 16 08:20:09 PDT 2021


kmclaughlin updated this revision to Diff 359330.
kmclaughlin marked an inline comment as done.
kmclaughlin edited the summary of this revision.
kmclaughlin added a comment.

- Changed the condition in IVDescriptiors before `lookThroughAnd` from `isArithmeticRecurrenceKind` to `!isMinMaxRecurrenceKind`
- Updated the tests for min/max to ensure these are not vectorized


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

https://reviews.llvm.org/D105632

Files:
  llvm/lib/Analysis/IVDescriptors.cpp
  llvm/test/Transforms/LoopVectorize/reduction-inloop-pred.ll
  llvm/test/Transforms/LoopVectorize/reduction-inloop.ll
  llvm/test/Transforms/LoopVectorize/trunc-reductions.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105632.359330.patch
Type: text/x-patch
Size: 26277 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210716/ddc0d7d0/attachment.bin>


More information about the llvm-commits mailing list