From 71ff880ff99752704206afd509e6480096dbc8bc Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sat, 10 Mar 2012 22:41:06 +0000 Subject: [PATCH] Make helper static, so it can be inlined into its sole caller. llvm-svn: 152515 --- llvm/lib/Analysis/InlineCost.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Analysis/InlineCost.cpp b/llvm/lib/Analysis/InlineCost.cpp index d1c91a2a4921..68d3d4676c2c 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 &Worklist, - unsigned &SROAReduction) { +static bool countCodeReductionForSROAInst(Instruction *I, + SmallVectorImpl &Worklist, + unsigned &SROAReduction) { if (LoadInst *LI = dyn_cast(I)) { if (!LI->isSimple()) return false;