[PATCH] D151482: [LV] Add support for minimum/maximum intrinsics

Anna Thomas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 25 11:38:22 PDT 2023


anna created this revision.
anna added reviewers: fhahn, dmgreen, spatel.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
anna requested review of this revision.
Herald added a subscriber: pcwang-thead.
Herald added a project: LLVM.

{mini|maxi}mum intrinsics are different from {min|max}num intrinsics
because the former supports propagation of NaN and handles signed zero.
Add support for identifying reduction patterns using these intrinsics.

There are tests added which show how this interacts across chains of
min/max patterns.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D151482

Files:
  llvm/lib/Analysis/IVDescriptors.cpp
  llvm/test/Transforms/LoopVectorize/minmax_reduction.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151482.525721.patch
Type: text/x-patch
Size: 10712 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230525/304cea73/attachment.bin>


More information about the llvm-commits mailing list