[llvm-commits] [llvm] r168299 - in /llvm/trunk: include/llvm/Analysis/InlineCost.h lib/Analysis/InlineCost.cpp

Bob Wilson bob.wilson at apple.com
Sun Nov 18 23:04:31 PST 2012


Author: bwilson
Date: Mon Nov 19 01:04:30 2012
New Revision: 168299

URL: http://llvm.org/viewvc/llvm-project?rev=168299&view=rev
Log:
Some comment fixes.

Modified:
    llvm/trunk/include/llvm/Analysis/InlineCost.h
    llvm/trunk/lib/Analysis/InlineCost.cpp

Modified: llvm/trunk/include/llvm/Analysis/InlineCost.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/InlineCost.h?rev=168299&r1=168298&r2=168299&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/InlineCost.h (original)
+++ llvm/trunk/include/llvm/Analysis/InlineCost.h Mon Nov 19 01:04:30 2012
@@ -120,11 +120,11 @@
     /// 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.

Modified: llvm/trunk/lib/Analysis/InlineCost.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/InlineCost.cpp?rev=168299&r1=168298&r2=168299&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/InlineCost.cpp (original)
+++ llvm/trunk/lib/Analysis/InlineCost.cpp Mon Nov 19 01:04:30 2012
@@ -794,7 +794,7 @@
 /// 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;
 





More information about the llvm-commits mailing list