[PATCH] D29231: [Inliner] Fix a comment to match the code. NFC.

Haicheng Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 27 13:16:23 PST 2017


haicheng created this revision.

TotalAltCost => TotalSecondaryCost


Repository:
  rL LLVM

https://reviews.llvm.org/D29231

Files:
  lib/Transforms/IPO/Inliner.cpp


Index: lib/Transforms/IPO/Inliner.cpp
===================================================================
--- lib/Transforms/IPO/Inliner.cpp
+++ lib/Transforms/IPO/Inliner.cpp
@@ -260,8 +260,8 @@
 /// Return true if inlining of CS can block the caller from being
 /// inlined which is proved to be more beneficial. \p IC is the
 /// estimated inline cost associated with callsite \p CS.
-/// \p TotalAltCost will be set to the estimated cost of inlining the caller
-/// if \p CS is suppressed for inlining.
+/// \p TotalSecondaryCost will be set to the estimated cost of inlining the
+/// caller if \p CS is suppressed for inlining.
 static bool
 shouldBeDeferred(Function *Caller, CallSite CS, InlineCost IC,
                  int &TotalSecondaryCost,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29231.86110.patch
Type: text/x-patch
Size: 753 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170127/5727bcfc/attachment.bin>


More information about the llvm-commits mailing list