Skip to content

Commit 5c94dc5

Browse files
committed
[SystemZ] Remove getInliningThresholdMultiplier() override
Using this TTI hook is only appropriate for GPU targets that need to maximally flatten all functions. The inlining threshold multiplier should not be increased for ordinary targets -- while this may increase benchmark scores, it can also result in large code size increases and runaway inlining, resulting in build OOM/timeouts.
1 parent 16e2ec8 commit 5c94dc5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ class SystemZTTIImpl : public BasicTTIImplBase<SystemZTTIImpl> {
3838
/// \name Scalar TTI Implementations
3939
/// @{
4040

41-
unsigned getInliningThresholdMultiplier() const { return 3; }
4241
unsigned adjustInliningThreshold(const CallBase *CB) const;
4342

4443
InstructionCost getIntImmCost(const APInt &Imm, Type *Ty,

0 commit comments

Comments
 (0)