Skip to content

Commit

Permalink
cmd/compile/internal: fix function names
Browse files Browse the repository at this point in the history
Change-Id: Id9103aa4bda221f5eb34a0ede8676364c574b696
Reviewed-on: https://go-review.googlesource.com/c/go/+/560616
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Keith Randall <[email protected]>
Reviewed-by: Robert Griesemer <[email protected]>
Reviewed-by: Keith Randall <[email protected]>
  • Loading branch information
cuishuang authored and Robert Griesemer committed Feb 2, 2024
1 parent 149db96 commit 3b83560
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cmd/compile/internal/inline/inl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/compile/internal/ir/reassign_consistency_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3b83560

Please sign in to comment.