diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-03-10 22:41:06 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-03-10 22:41:06 +0000 |
commit | 71ff880ff99752704206afd509e6480096dbc8bc (patch) | |
tree | b2d8b153110c9efe360e9215ac703d044aef3416 | |
parent | fa432f30d4fb677959baf4e92afc505572f85e81 (diff) | |
download | bcm5719-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.cpp | 6 |
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; |