[PATCH] D44574: [LV] Introduce TTI::getMinimumVF

Krzysztof Parzyszek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 16 12:04:27 PDT 2018


kparzysz created this revision.
kparzysz added reviewers: craig.topper, dcaballe, hfinkel, hsaito, mkuper, rengolin, fhahn.

TargetTransformInfo::getMinimumVF(ElementType) will return the target's minimum VF for a given element type. By default the minimum VF is 2. The VF=1 (i.e. not vectorizing) is still considered a valid VF, and if vectorization is not profitable, the minimum VF will not force it to happen.

This is a followup to https://reviews.llvm.org/D44523.


Repository:
  rL LLVM

https://reviews.llvm.org/D44574

Files:
  include/llvm/Analysis/TargetTransformInfo.h
  include/llvm/Analysis/TargetTransformInfoImpl.h
  lib/Analysis/TargetTransformInfo.cpp
  lib/Transforms/Vectorize/LoopVectorize.cpp
  test/Transforms/LoopUnroll/runtime-loop4.ll
  test/Transforms/LoopVectorize/X86/funclet.ll
  test/Transforms/LoopVectorize/pr32859.ll
  test/Transforms/LoopVectorize/unroll.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44574.138742.patch
Type: text/x-patch
Size: 15383 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180316/156684f2/attachment.bin>


More information about the llvm-commits mailing list