From: cui fliter Date: Fri, 2 Feb 2024 09:30:03 +0000 (+0800) Subject: cmd/compile/internal: fix function names X-Git-Tag: go1.23rc1~1312 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3b83560baf1e2ba9e03a718fcc91f820c714ecdf;p=gostls13.git cmd/compile/internal: fix function names Change-Id: Id9103aa4bda221f5eb34a0ede8676364c574b696 Reviewed-on: https://go-review.googlesource.com/c/go/+/560616 LUCI-TryBot-Result: Go LUCI Reviewed-by: Keith Randall Reviewed-by: Robert Griesemer Reviewed-by: Keith Randall --- diff --git a/src/cmd/compile/internal/inline/inl.go b/src/cmd/compile/internal/inline/inl.go index b365008c76..f6f6ad8411 100644 --- a/src/cmd/compile/internal/inline/inl.go +++ b/src/cmd/compile/internal/inline/inl.go @@ -919,7 +919,7 @@ func inlineCostOK(n *ir.CallExpr, caller, callee *ir.Func, bigCaller bool) (bool return true, 0, metric } -// canInlineCallsite returns true if the call n from caller to callee +// canInlineCallExpr returns true if the call n from caller to callee // can be inlined, plus the score computed for the call expr in // question. bigCaller indicates that caller is a big function. log // indicates that the 'cannot inline' reason should be logged. diff --git a/src/cmd/compile/internal/inline/inlheur/analyze_func_params.go b/src/cmd/compile/internal/inline/inlheur/analyze_func_params.go index d85d73b2ef..f6bd84c3f5 100644 --- a/src/cmd/compile/internal/inline/inlheur/analyze_func_params.go +++ b/src/cmd/compile/internal/inline/inlheur/analyze_func_params.go @@ -45,7 +45,7 @@ func addParamsAnalyzer(fn *ir.Func, analyzers []propAnalyzer, fp *FuncProps, nf return analyzers } -// makeParamAnalyzer creates a new helper object to analyze parameters +// makeParamsAnalyzer creates a new helper object to analyze parameters // of function fn. If the function doesn't have any interesting // params, a nil helper is returned along with a set of default param // flags for the func. diff --git a/src/cmd/compile/internal/ir/reassign_consistency_check.go b/src/cmd/compile/internal/ir/reassign_consistency_check.go index e4d928d132..06a6c88962 100644 --- a/src/cmd/compile/internal/ir/reassign_consistency_check.go +++ b/src/cmd/compile/internal/ir/reassign_consistency_check.go @@ -22,7 +22,7 @@ func checkStaticValueResult(n Node, newres Node) { } } -// checkStaticValueResult compares the result from ReassignOracle.Reassigned +// checkReassignedResult compares the result from ReassignOracle.Reassigned // with the corresponding result from ir.Reassigned to make sure they agree. // This method is called only when turned on via build tag. func checkReassignedResult(n *Name, newres bool) {