[LV] Introduce TTI::getMinimumVF
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Fri, 13 Apr 2018 20:16:32 +0000 (20:16 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Fri, 13 Apr 2018 20:16:32 +0000 (20:16 +0000)
commitdfed941eec93d257ce0671dec032bb67074acdf6
tree0a677852c734cb9ba1ff6c414597855100960ffd
parent0f035ebed29f3ab5392164e75472b8d46e022d22
[LV] Introduce TTI::getMinimumVF

The function getMinimumVF(ElemWidth) will return the minimum VF for
a vector with elements of size ElemWidth bits. This value will only
apply to targets for which TTI::shouldMaximizeVectorBandwidth returns
true. The value of 0 indicates that there is no minimum VF.

Differential Revision: https://reviews.llvm.org/D45271

llvm-svn: 330062
llvm/include/llvm/Analysis/TargetTransformInfo.h
llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
llvm/lib/Analysis/TargetTransformInfo.cpp
llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.h
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/Hexagon/lit.local.cfg [new file with mode: 0644]
llvm/test/Transforms/LoopVectorize/Hexagon/minimum-vf.ll [new file with mode: 0644]