[PATCH] D30418: [SLP] Preserve IR flags when vectorizing horizontal reductions.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 27 11:12:45 PST 2017


ABataev created this revision.

The SLP vectorizer should propagate IR-level optimization hints/flags
(nsw, nuw, exact, fast-math) when converting scalar horizontal
reductions instructions into vectors, just like for other vectorized
instructions.
It doe not include IR propagation for extra arguments, we need to handle
original scalar operations for extra args to propagate correct flags.


https://reviews.llvm.org/D30418

Files:
  lib/Transforms/Vectorize/SLPVectorizer.cpp
  test/Transforms/SLPVectorizer/X86/horizontal.ll
  test/Transforms/SLPVectorizer/X86/scheduling.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30418.89907.patch
Type: text/x-patch
Size: 10848 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170227/1a847514/attachment.bin>


More information about the llvm-commits mailing list