summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/InlineCost.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-12-21 20:21:55 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-12-21 20:21:55 +0000
commit281e2747e00e22db1b11f8ba96af6116fa9c5782 (patch)
tree1040cfbe500ba73299d482e57c0fe3ac6a0185c6 /llvm/lib/Analysis/InlineCost.cpp
parente5cdd080ba9f165d348a26034114e27af64fdc23 (diff)
downloadbcm5719-llvm-281e2747e00e22db1b11f8ba96af6116fa9c5782.tar.gz
bcm5719-llvm-281e2747e00e22db1b11f8ba96af6116fa9c5782.zip
Fix typo and spacing, no functionality change.
llvm-svn: 147092
Diffstat (limited to 'llvm/lib/Analysis/InlineCost.cpp')
-rw-r--r--llvm/lib/Analysis/InlineCost.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/InlineCost.cpp b/llvm/lib/Analysis/InlineCost.cpp
index 14bdd40efcf..225c3f4cbfc 100644
--- a/llvm/lib/Analysis/InlineCost.cpp
+++ b/llvm/lib/Analysis/InlineCost.cpp
@@ -138,7 +138,7 @@ void CodeMetrics::analyzeBasicBlock(const BasicBlock *BB,
// FIXME: This logic isn't really right; we can safely inline functions
// with indirectbr's as long as no other function or global references the
// blockaddress of a block within the current function. And as a QOI issue,
- // if someone is using a blockaddress wihtout an indirectbr, and that
+ // if someone is using a blockaddress without an indirectbr, and that
// reference somehow ends up in another function or global, we probably
// don't want to inline this function.
if (isa<IndirectBrInst>(BB->getTerminator()))
@@ -422,7 +422,7 @@ int InlineCostAnalyzer::getInlineSize(CallSite CS, Function *Callee) {
InlineCost += CalleeFI->Metrics.NumCalls * InlineConstants::CallPenalty;
// Look at the size of the callee. Each instruction counts as 5.
- InlineCost += CalleeFI->Metrics.NumInsts*InlineConstants::InstrCost;
+ InlineCost += CalleeFI->Metrics.NumInsts * InlineConstants::InstrCost;
return InlineCost;
}
OpenPOWER on IntegriCloud