summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/Inline
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2017-08-14 21:25:00 +0000
committerChandler Carruth <chandlerc@gmail.com>2017-08-14 21:25:00 +0000
commitbba762a13f37ac5841ad67a2846e9ea2b24df337 (patch)
treea00850b91f39d26bd156745b2ae2eb52d39693d6 /llvm/test/Transforms/Inline
parent901d61561c9927f7f8a4e1f422bbd30e0920cd68 (diff)
downloadbcm5719-llvm-bba762a13f37ac5841ad67a2846e9ea2b24df337.tar.gz
bcm5719-llvm-bba762a13f37ac5841ad67a2846e9ea2b24df337.zip
[InlineCost] Refactor the checks for different analyses to be a bit more
localized to the code that uses those analyses. Technically, this can change behavior as we no longer require the existence of the ProfileSummaryInfo analysis to use local profile information via BFI. We didn't actually require the PSI to have an interesting profile though, so this only really impacts the behavior in non-default pass pipelines. IMO, this makes it substantially less surprising how everything works -- before an analysis that wasn't actually used had to exist to trigger *any* profile aware inlining. I think the new organization makes it more obvious where various checks for profile signals happen. Differential Revision: https://reviews.llvm.org/D36710 llvm-svn: 310888
Diffstat (limited to 'llvm/test/Transforms/Inline')
-rw-r--r--llvm/test/Transforms/Inline/pr26698.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Transforms/Inline/pr26698.ll b/llvm/test/Transforms/Inline/pr26698.ll
index 12a40c100e9..6d5873ff1bc 100644
--- a/llvm/test/Transforms/Inline/pr26698.ll
+++ b/llvm/test/Transforms/Inline/pr26698.ll
@@ -1,5 +1,5 @@
-; RUN: opt -S -inline < %s | FileCheck %s
-; RUN: opt -S -passes='cgscc(inline)' < %s | FileCheck %s
+; RUN: opt -S -inline -inline-threshold=100 -inline-cold-callsite-threshold=100 < %s | FileCheck %s
+; RUN: opt -S -passes='cgscc(inline)' -inline-threshold=100 -inline-cold-callsite-threshold=100 < %s | FileCheck %s
target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
target triple = "i686-pc-windows-msvc18.0.0"
OpenPOWER on IntegriCloud