aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-03-10 22:41:06 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-03-10 22:41:06 +0000
commit4210b34e5988ce53458a88ee6dfb0c9bcdad3d57 (patch)
treec86fc7c3895bf6be86aed691994095ea65aec25d /lib/Analysis
parent309a2c4e3be8a5dc55e76e766be2d2fb0f9cdec2 (diff)
downloadexternal_llvm-4210b34e5988ce53458a88ee6dfb0c9bcdad3d57.zip
external_llvm-4210b34e5988ce53458a88ee6dfb0c9bcdad3d57.tar.gz
external_llvm-4210b34e5988ce53458a88ee6dfb0c9bcdad3d57.tar.bz2
Make helper static, so it can be inlined into its sole caller.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152515 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/InlineCost.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/InlineCost.cpp b/lib/Analysis/InlineCost.cpp
index d1c91a2..68d3d46 100644
--- a/lib/Analysis/InlineCost.cpp
+++ b/lib/Analysis/InlineCost.cpp
@@ -272,9 +272,9 @@ static unsigned countCodeReductionForAllocaICmp(const CodeMetrics &Metrics,
/// The reduction for this instruction is added to the SROAReduction output
/// parameter. Returns false if this instruction is expected to defeat SROA in
/// general.
-bool countCodeReductionForSROAInst(Instruction *I,
- SmallVectorImpl<Value *> &Worklist,
- unsigned &SROAReduction) {
+static bool countCodeReductionForSROAInst(Instruction *I,
+ SmallVectorImpl<Value *> &Worklist,
+ unsigned &SROAReduction) {
if (LoadInst *LI = dyn_cast<LoadInst>(I)) {
if (!LI->isSimple())
return false;