[PATCH] D37759: [SLP] Mark conditional ops of hor reduction SelectInst as Ignored + propagate IR flags.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 12 13:01:21 PDT 2017


ABataev created this revision.

If the min/max horizontal reduction is found, compare operands of the
SelectInst are considered as instruction that externally use reduction
values. But they must be ignored and their operands must be replaced by
UndefValues.
Also, patch fixes propagation of IR flags. Vectorized compare
instructions did not inherit IR flags from the scalar instructions.


https://reviews.llvm.org/D37759

Files:
  lib/Transforms/Vectorize/SLPVectorizer.cpp
  test/Transforms/SLPVectorizer/X86/horizontal-list.ll
  test/Transforms/SLPVectorizer/X86/horizontal-minmax.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37759.114886.patch
Type: text/x-patch
Size: 219626 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170912/7ed2d58c/attachment-0001.bin>


More information about the llvm-commits mailing list