diff options
author | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-07-12 19:16:02 +0000 |
---|---|---|
committer | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-07-12 19:16:02 +0000 |
commit | 9da9a43af893f9a18f8b69b1b7fa465d6ea6e4c4 (patch) | |
tree | 00c03749a8a3431468c4f215930e7951ee1981e9 /llvm/lib/CodeGen/BasicTargetTransformInfo.cpp | |
parent | c5acd1ca8471c86a49ccdbaafc415ddfd36ea7ad (diff) | |
download | bcm5719-llvm-9da9a43af893f9a18f8b69b1b7fa465d6ea6e4c4.tar.gz bcm5719-llvm-9da9a43af893f9a18f8b69b1b7fa465d6ea6e4c4.zip |
TargetTransformInfo: address calculation parameter for gather/scather
Address calculation for gather/scather in vectorized code can incur a
significant cost making vectorization unbeneficial. Add infrastructure to add
cost.
Tests and cost model for targets will be in follow-up commits.
radar://14351991
llvm-svn: 186187
Diffstat (limited to 'llvm/lib/CodeGen/BasicTargetTransformInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/BasicTargetTransformInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/BasicTargetTransformInfo.cpp b/llvm/lib/CodeGen/BasicTargetTransformInfo.cpp index 19ace642ef1..3755320ab15 100644 --- a/llvm/lib/CodeGen/BasicTargetTransformInfo.cpp +++ b/llvm/lib/CodeGen/BasicTargetTransformInfo.cpp @@ -108,7 +108,7 @@ public: virtual unsigned getIntrinsicInstrCost(Intrinsic::ID, Type *RetTy, ArrayRef<Type*> Tys) const; virtual unsigned getNumberOfParts(Type *Tp) const; - virtual unsigned getAddressComputationCost(Type *Ty) const; + virtual unsigned getAddressComputationCost(Type *Ty, bool IsComplex) const; /// @} }; @@ -489,6 +489,6 @@ unsigned BasicTTI::getNumberOfParts(Type *Tp) const { return LT.first; } -unsigned BasicTTI::getAddressComputationCost(Type *Ty) const { +unsigned BasicTTI::getAddressComputationCost(Type *Ty, bool IsComplex) const { return 0; } |