diff options
author | Jingyue Wu <jingyue@google.com> | 2016-07-08 21:48:05 +0000 |
---|---|---|
committer | Jingyue Wu <jingyue@google.com> | 2016-07-08 21:48:05 +0000 |
commit | 82974e1277349797982ece8535fed21f9ec9edfa (patch) | |
tree | d051af4ca801ee4da24baf7aa82c80fc9c388ae4 /lib/Analysis/TargetTransformInfo.cpp | |
parent | 5e2ec03cf41651f2c0ec895390e24c209b290591 (diff) |
[TTI] Expose TTI::getGEPCost and use it in SLSR and NaryReassociate.
NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274940 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/TargetTransformInfo.cpp')
-rw-r--r-- | lib/Analysis/TargetTransformInfo.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Analysis/TargetTransformInfo.cpp b/lib/Analysis/TargetTransformInfo.cpp index 3d118d3d5ee..51440f5b2df 100644 --- a/lib/Analysis/TargetTransformInfo.cpp +++ b/lib/Analysis/TargetTransformInfo.cpp @@ -71,6 +71,11 @@ unsigned TargetTransformInfo::getInliningThresholdMultiplier() const { return TTIImpl->getInliningThresholdMultiplier(); } +int TargetTransformInfo::getGEPCost(Type *PointeeType, const Value *Ptr, + ArrayRef<const Value *> Operands) const { + return TTIImpl->getGEPCost(PointeeType, Ptr, Operands); +} + int TargetTransformInfo::getIntrinsicCost( Intrinsic::ID IID, Type *RetTy, ArrayRef<const Value *> Arguments) const { int Cost = TTIImpl->getIntrinsicCost(IID, RetTy, Arguments); |