summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ
diff options
context:
space:
mode:
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>2018-08-13 13:31:30 +0000
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>2018-08-13 13:31:30 +0000
commit5ffb27b16615aafb5190b43a667173f84bafadb4 (patch)
tree5d654ecfc50d6abeae65b8ec49fe5738ec68d0e5 /llvm/lib/Target/SystemZ
parent4aaf48013d041a554c4ae324b961c86fe05835b4 (diff)
downloadbcm5719-llvm-5ffb27b16615aafb5190b43a667173f84bafadb4.tar.gz
bcm5719-llvm-5ffb27b16615aafb5190b43a667173f84bafadb4.zip
[SystemZ] Increase the amount of inlining.
Implement getInliningThresholdMultiplier() and have it return 3. Review: Ulrich Weigand llvm-svn: 339563
Diffstat (limited to 'llvm/lib/Target/SystemZ')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h b/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h
index 4b11a6f0a83..bfa942357c5 100644
--- a/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h
+++ b/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h
@@ -37,6 +37,8 @@ public:
/// \name Scalar TTI Implementations
/// @{
+ unsigned getInliningThresholdMultiplier() { return 3; }
+
int getIntImmCost(const APInt &Imm, Type *Ty);
int getIntImmCost(unsigned Opcode, unsigned Idx, const APInt &Imm, Type *Ty);
OpenPOWER on IntegriCloud