summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2012-11-19 07:04:30 +0000
committerBob Wilson <bob.wilson@apple.com>2012-11-19 07:04:30 +0000
commit266802d25640d58577d41b42fb0e134c0c76c341 (patch)
treebf371049ce248244e11c27ffb0b4949e7f11024d /llvm
parent76a943be7beef5284d42ccd59a1e1f121ba3a8a9 (diff)
downloadbcm5719-llvm-266802d25640d58577d41b42fb0e134c0c76c341.tar.gz
bcm5719-llvm-266802d25640d58577d41b42fb0e134c0c76c341.zip
Some comment fixes.
llvm-svn: 168299
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Analysis/InlineCost.h10
-rw-r--r--llvm/lib/Analysis/InlineCost.cpp2
2 files changed, 6 insertions, 6 deletions
diff --git a/llvm/include/llvm/Analysis/InlineCost.h b/llvm/include/llvm/Analysis/InlineCost.h
index a075db33427..af07d381690 100644
--- a/llvm/include/llvm/Analysis/InlineCost.h
+++ b/llvm/include/llvm/Analysis/InlineCost.h
@@ -120,11 +120,11 @@ namespace llvm {
/// bound the computation necessary to determine whether the cost is
/// sufficiently low to warrant inlining.
InlineCost getInlineCost(CallSite CS, int Threshold);
- /// getCalledFunction - The heuristic used to determine if we should inline
- /// the function call or not. The callee is explicitly specified, to allow
- /// you to calculate the cost of inlining a function via a pointer. This
- /// behaves exactly as the version with no explicit callee parameter in all
- /// other respects.
+
+ /// \brief Get an InlineCost with the callee explicitly specified.
+ /// This allows you to calculate the cost of inlining a function via a
+ /// pointer. This behaves exactly as the version with no explicit callee
+ /// parameter in all other respects.
//
// Note: This is used by out-of-tree passes, please do not remove without
// adding a replacement API.
diff --git a/llvm/lib/Analysis/InlineCost.cpp b/llvm/lib/Analysis/InlineCost.cpp
index 5f51f775f14..0da54134638 100644
--- a/llvm/lib/Analysis/InlineCost.cpp
+++ b/llvm/lib/Analysis/InlineCost.cpp
@@ -794,7 +794,7 @@ ConstantInt *CallAnalyzer::stripAndComputeInBoundsConstantOffsets(Value *&V) {
/// viable. It computes the cost and adjusts the threshold based on numerous
/// factors and heuristics. If this method returns false but the computed cost
/// is below the computed threshold, then inlining was forcibly disabled by
-/// some artifact of the rountine.
+/// some artifact of the routine.
bool CallAnalyzer::analyzeCall(CallSite CS) {
++NumCallsAnalyzed;
OpenPOWER on IntegriCloud