[PATCH] D99753: [SLP]Fix a bug in min/max reduction, number of condition uses.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 1 11:08:26 PDT 2021


ABataev created this revision.
ABataev added reviewers: spatel, RKSimon, dtemirbulatov, anton-afanasyev, vdmitrie.
Herald added a subscriber: hiraditya.
ABataev requested review of this revision.
Herald added a project: LLVM.

The ultimate reduction node may have multiple uses, but if the ultimate
reduction is min/max reduction and based on SelectInstruction, the
condition of this select instruction must have only single use.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99753

Files:
  llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
  llvm/test/Transforms/SLPVectorizer/X86/horizontal-minmax.ll
  llvm/test/Transforms/SLPVectorizer/X86/used-reduced-op.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99753.334772.patch
Type: text/x-patch
Size: 39104 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210401/9bf88c52/attachment.bin>


More information about the llvm-commits mailing list