Coding style formatting changes.
authorEric Christopher <echristo@apple.com>
Wed, 26 Jan 2011 01:09:59 +0000 (01:09 +0000)
committerEric Christopher <echristo@apple.com>
Wed, 26 Jan 2011 01:09:59 +0000 (01:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124260 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/InlineCost.cpp

index 780f921fff4ca3a7abd3ad6b20d22cbcc336d8cf..76f134840297a3be3a9b7ff7f47b1b973ad5e07e 100644 (file)
@@ -343,12 +343,9 @@ int InlineCostAnalyzer::getSpecializationBonus(Function *Callee,
   if (CalleeFI->Metrics.NumBlocks == 0)
     CalleeFI->analyzeFunction(Callee);
 
-
-  for (unsigned i = 0, s = SpecializedArgNos.size();
-       i < s; ++i )
-  {
+  for (unsigned i = 0, s = SpecializedArgNos.size(); i < s; ++i )
     Bonus += CalleeFI->ArgumentWeights[SpecializedArgNos[i]].ConstantBonus;
-  }
+
   // Calls usually take a long time, so they make the specialization gain 
   // smaller.
   Bonus -= CalleeFI->Metrics.NumCalls * InlineConstants::CallPenalty;
@@ -514,9 +511,7 @@ InlineCost InlineCostAnalyzer::getSpecializationCost(Function *Callee,
   // away with the given arguments replaced by constants.
   for (SmallVectorImpl<unsigned>::iterator an = SpecializedArgNos.begin(),
        ae = SpecializedArgNos.end(); an != ae; ++an)
-  {
     Cost -= CalleeFI->ArgumentWeights[*an].ConstantWeight;
-  }
 
   return llvm::InlineCost::get(Cost);
 }