[llvm-commits] [llvm] r152515 - /llvm/trunk/lib/Analysis/InlineCost.cpp

Benjamin Kramer benny.kra at googlemail.com
Sat Mar 10 14:41:06 PST 2012


Author: d0k
Date: Sat Mar 10 16:41:06 2012
New Revision: 152515

URL: http://llvm.org/viewvc/llvm-project?rev=152515&view=rev
Log:
Make helper static, so it can be inlined into its sole caller.

Modified:
    llvm/trunk/lib/Analysis/InlineCost.cpp

Modified: llvm/trunk/lib/Analysis/InlineCost.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/InlineCost.cpp?rev=152515&r1=152514&r2=152515&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/InlineCost.cpp (original)
+++ llvm/trunk/lib/Analysis/InlineCost.cpp Sat Mar 10 16:41:06 2012
@@ -272,9 +272,9 @@
 /// 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;





More information about the llvm-commits mailing list