summaryrefslogtreecommitdiffstats
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
commit71ff880ff99752704206afd509e6480096dbc8bc (patch)
treeb2d8b153110c9efe360e9215ac703d044aef3416
parentfa432f30d4fb677959baf4e92afc505572f85e81 (diff)
downloadbcm5719-llvm-71ff880ff99752704206afd509e6480096dbc8bc.tar.gz
bcm5719-llvm-71ff880ff99752704206afd509e6480096dbc8bc.zip
Make helper static, so it can be inlined into its sole caller.
llvm-svn: 152515
-rw-r--r--llvm/lib/Analysis/InlineCost.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/InlineCost.cpp b/llvm/lib/Analysis/InlineCost.cpp
index d1c91a2a492..68d3d4676c2 100644
--- a/llvm/lib/Analysis/InlineCost.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud