summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/Inline
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2014-02-06 01:59:22 +0000
committerManman Ren <manman.ren@gmail.com>2014-02-06 01:59:22 +0000
commitd461244972ebab3bdfaaadbea212ed755c97adf1 (patch)
tree8cde47af9bbc4a359ae38366426861349d3a73e6 /llvm/test/Transforms/Inline
parent18819307d302269cd52cbaa5c5ef2ab60dc871d3 (diff)
downloadbcm5719-llvm-d461244972ebab3bdfaaadbea212ed755c97adf1.tar.gz
bcm5719-llvm-d461244972ebab3bdfaaadbea212ed755c97adf1.zip
Set default of inlinecold-threshold to 225.
225 is the default value of inline-threshold. This change will make sure we have the same inlining behavior as prior to r200886. As Chandler points out, even though we don't have code in our testing suite that uses cold attribute, there are larger applications that do use cold attribute. r200886 + this commit intend to keep the same behavior as prior to r200886. We can later on tune the inlinecold-threshold. The main purpose of r200886 is to help performance of instrumentation based PGO before we actually hook up inliner with analysis passes such as BPI and BFI. For instrumentation based PGO, we try to increase inlining of hot functions and reduce inlining of cold functions by setting inlinecold-threshold. Another option suggested by Chandler is to use a boolean flag that controls if we should use OptSizeThreshold for cold functions. The default value of the boolean flag should not change the current behavior. But it gives us less freedom in controlling inlining of cold functions. llvm-svn: 200898
Diffstat (limited to 'llvm/test/Transforms/Inline')
-rw-r--r--llvm/test/Transforms/Inline/inline-cold.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/Inline/inline-cold.ll b/llvm/test/Transforms/Inline/inline-cold.ll
index bbf4e54be40..bb8c008262f 100644
--- a/llvm/test/Transforms/Inline/inline-cold.ll
+++ b/llvm/test/Transforms/Inline/inline-cold.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -inline -S -inlinecold-threshold=75 | FileCheck %s
; Test that functions with attribute Cold are not inlined while the
; same function without attribute Cold will be inlined.
OpenPOWER on IntegriCloud