[PATCH] D36838: [SLP] Fix for PR34219, part 2: Use minimal alignment for vectorized stores.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 17 09:53:36 PDT 2017


ABataev created this revision.
Herald added a subscriber: mzolotukhin.

When building vectorized store in SLP pass, we use the alignment of the
the first vectorized store instruction. But other vectorized stores
instruction may have the alignment that is less than the alignment of
the first vectorizable instruction. Patch uses the minimal alignment of
all vectorizable stores for a resulting vector store instruction.


https://reviews.llvm.org/D36838

Files:
  lib/Transforms/Vectorize/SLPVectorizer.cpp
  test/Transforms/SLPVectorizer/X86/insert-after-bundle.ll
  test/Transforms/SLPVectorizer/X86/limit.ll
  test/Transforms/SLPVectorizer/X86/sitofp.ll
  test/Transforms/SLPVectorizer/X86/uitofp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36838.111531.patch
Type: text/x-patch
Size: 67717 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170817/1df9e321/attachment-0001.bin>


More information about the llvm-commits mailing list