[PATCH] D36837: [SLP] Fix for PR34219, part 1: Use minimal alignment for vectorized loads.

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


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

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


https://reviews.llvm.org/D36837

Files:
  lib/Transforms/Vectorize/SLPVectorizer.cpp
  test/Transforms/SLPVectorizer/X86/horizontal-list.ll
  test/Transforms/SLPVectorizer/X86/horizontal.ll
  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: D36837.111529.patch
Type: text/x-patch
Size: 84772 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170817/4cc11f16/attachment.bin>


More information about the llvm-commits mailing list