diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-12-21 20:21:55 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-12-21 20:21:55 +0000 |
commit | 144bef462b5e0b77dafff90287d3c26cbb369a68 (patch) | |
tree | 77163f0eb1056469ddcb4c795219516bb3103056 /lib/Analysis | |
parent | 73db975498bc0e117a0854ab2e0cecad51ad17bf (diff) | |
download | external_llvm-144bef462b5e0b77dafff90287d3c26cbb369a68.zip external_llvm-144bef462b5e0b77dafff90287d3c26cbb369a68.tar.gz external_llvm-144bef462b5e0b77dafff90287d3c26cbb369a68.tar.bz2 |
Fix typo and spacing, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147092 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/InlineCost.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/InlineCost.cpp b/lib/Analysis/InlineCost.cpp index 14bdd40..225c3f4 100644 --- a/lib/Analysis/InlineCost.cpp +++ b/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; } |