[PATCH] D28959: [SLP] Improve horizontal vectorization for non-power-of-2 number of instructions.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 20 10:34:49 PST 2017


ABataev created this revision.

If the number of instructions in horizontal reduction list is not the power of 2 then only PowerOf2Floor(NumberOfInstructions) last elements are actually vectorized, other instructions remain scalar. Patch tries to vectorize the remaining elements either.


https://reviews.llvm.org/D28959

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28959.85156.patch
Type: text/x-patch
Size: 15073 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170120/101213a0/attachment.bin>


More information about the llvm-commits mailing list