[PATCH] D34373: [LV] Optimize for size when vectorizing loops with tiny trip count

Ayal Zaks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 28 10:34:09 PDT 2017


Ayal updated this revision to Diff 104453.
Ayal added a comment.

Updated version includes the comment requested by @hfinkel.

@mkuper, this is somewhat related to https://reviews.llvm.org/D26873; it conceptually allows vectorizing loops with low dynamic trip-counts that are also known to be divisible by VF statically; but current computeMaxVF() allows vectorizing loops under OptForSize only if their trip count is known statically, and known to be divisible by VF.


https://reviews.llvm.org/D34373

Files:
  lib/Transforms/Vectorize/LoopVectorize.cpp
  test/Transforms/LoopVectorize/X86/vect.omp.force.small-tc.ll
  test/Transforms/LoopVectorize/small-loop.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34373.104453.patch
Type: text/x-patch
Size: 7113 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170628/180b2273/attachment.bin>


More information about the llvm-commits mailing list