summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/Inline
diff options
context:
space:
mode:
authorEaswaran Raman <eraman@google.com>2017-05-16 21:18:09 +0000
committerEaswaran Raman <eraman@google.com>2017-05-16 21:18:09 +0000
commit3cd1479c3f670c2d4803edc13a1caa094e6a50dc (patch)
tree06691a23bed2d49bc3702100aa0587f1a00db279 /llvm/test/Transforms/Inline
parent0fbbef43e0d8dcc6097e755f6fb5954492f1c517 (diff)
downloadbcm5719-llvm-3cd1479c3f670c2d4803edc13a1caa094e6a50dc.tar.gz
bcm5719-llvm-3cd1479c3f670c2d4803edc13a1caa094e6a50dc.zip
[Inliner] Do not mix callsite and callee hotness based updates.
Update threshold based on callee's hotness only when BFI is not available. Otherwise use only callsite's hotness. This makes it easier to reason about hotness related threshold updates. Differential revision: https://reviews.llvm.org/D33157 llvm-svn: 303210
Diffstat (limited to 'llvm/test/Transforms/Inline')
-rw-r--r--llvm/test/Transforms/Inline/inline-hot-callee.ll10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/test/Transforms/Inline/inline-hot-callee.ll b/llvm/test/Transforms/Inline/inline-hot-callee.ll
index da6e52343b2..dad57440063 100644
--- a/llvm/test/Transforms/Inline/inline-hot-callee.ll
+++ b/llvm/test/Transforms/Inline/inline-hot-callee.ll
@@ -1,10 +1,10 @@
; RUN: opt < %s -inline -inline-threshold=0 -inlinehint-threshold=100 -S | FileCheck %s
-; RUN: opt < %s -passes='require<profile-summary>,cgscc(inline)' -inline-threshold=0 -inlinehint-threshold=100 -S | FileCheck %s
-; This tests that a hot callee gets the (higher) inlinehint-threshold even without
-; inline hints and gets inlined because the cost is less than inlinehint-threshold.
-; A cold callee with identical body does not get inlined because cost exceeds the
-; inline-threshold
+; This tests that a hot callee gets the (higher) inlinehint-threshold even
+; without inline hints and gets inlined because the cost is less than
+; inlinehint-threshold. A cold callee with identical body does not get inlined
+; because cost exceeds the inline-threshold. This test is relevant only when the
+; old pass manager is used.
define i32 @callee1(i32 %x) !prof !21 {
%x1 = add i32 %x, 1
OpenPOWER on IntegriCloud