diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2018-03-27 16:14:11 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2018-03-27 16:14:11 +0000 |
commit | 5d93fdfa898fb1fcfd574770362e5c79ba2deb2b (patch) | |
tree | 1d0667539261ed0a9cd0eb03629cbf121c6fec1e /llvm/lib/Analysis/TargetTransformInfo.cpp | |
parent | 22458ea7aa968518e275909c4cec52c110f23072 (diff) | |
download | bcm5719-llvm-5d93fdfa898fb1fcfd574770362e5c79ba2deb2b.tar.gz bcm5719-llvm-5d93fdfa898fb1fcfd574770362e5c79ba2deb2b.zip |
[LV] Add TTI::shouldMaximizeVectorBandwidth to allow enabling it per target
The default implementation returns false and keeps the current behavior.
Differential Revision: https://reviews.llvm.org/D44735
llvm-svn: 328632
Diffstat (limited to 'llvm/lib/Analysis/TargetTransformInfo.cpp')
-rw-r--r-- | llvm/lib/Analysis/TargetTransformInfo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/TargetTransformInfo.cpp b/llvm/lib/Analysis/TargetTransformInfo.cpp index a78ec9a5a89..673e55559c5 100644 --- a/llvm/lib/Analysis/TargetTransformInfo.cpp +++ b/llvm/lib/Analysis/TargetTransformInfo.cpp @@ -338,6 +338,10 @@ unsigned TargetTransformInfo::getMinVectorRegisterBitWidth() const { return TTIImpl->getMinVectorRegisterBitWidth(); } +bool TargetTransformInfo::shouldMaximizeVectorBandwidth(bool OptSize) const { + return TTIImpl->shouldMaximizeVectorBandwidth(OptSize); +} + bool TargetTransformInfo::shouldConsiderAddressTypePromotion( const Instruction &I, bool &AllowPromotionWithoutCommonHeader) const { return TTIImpl->shouldConsiderAddressTypePromotion( |