[llvm-commits] [llvm] r147092 - /llvm/trunk/lib/Analysis/InlineCost.cpp
Nick Lewycky
nicholas at mxc.ca
Wed Dec 21 12:21:55 PST 2011
Author: nicholas
Date: Wed Dec 21 14:21:55 2011
New Revision: 147092
URL: http://llvm.org/viewvc/llvm-project?rev=147092&view=rev
Log:
Fix typo and spacing, no functionality change.
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=147092&r1=147091&r2=147092&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/InlineCost.cpp (original)
+++ llvm/trunk/lib/Analysis/InlineCost.cpp Wed Dec 21 14:21:55 2011
@@ -138,7 +138,7 @@
// 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 @@
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;
}
More information about the llvm-commits
mailing list