]> granicus.if.org Git - llvm/commitdiff
[Inliner] Fix a comment to match the code. NFC.
authorHaicheng Wu <haicheng@codeaurora.org>
Mon, 30 Jan 2017 16:15:14 +0000 (16:15 +0000)
committerHaicheng Wu <haicheng@codeaurora.org>
Mon, 30 Jan 2017 16:15:14 +0000 (16:15 +0000)
TotalAltCost => TotalSecondaryCost

Differential Revision: https://reviews.llvm.org/D29231

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293490 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/Inliner.cpp

index 767a2076de6f6a9a654b3e730003161340935195..6020df6cf409a5ba0746a9650b508cf132e4e389 100644 (file)
@@ -261,8 +261,8 @@ static bool InlineCallIfPossible(
 /// 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,