mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: fix PGO line offset matching
Appears to be a typo in CL 447315. Change-Id: I9f380a3c7521f5ac5a1d7e271eaa60bd4bbcfb29 Reviewed-on: https://go-review.googlesource.com/c/go/+/448515 Run-TryBot: Cherry Mui <cherryyz@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Michael Pratt <mpratt@google.com>
This commit is contained in:
parent
6939659a08
commit
0409314db3
1 changed files with 1 additions and 1 deletions
|
|
@ -919,7 +919,7 @@ func mkinlcall(n *ir.CallExpr, fn *ir.Func, maxCost int32, inlCalls *[]*ir.Inlin
|
||||||
}
|
}
|
||||||
if fn.Inl.Cost > maxCost {
|
if fn.Inl.Cost > maxCost {
|
||||||
// If the callsite is hot and it is under the inlineHotMaxBudget budget, then try to inline it, or else bail.
|
// If the callsite is hot and it is under the inlineHotMaxBudget budget, then try to inline it, or else bail.
|
||||||
lineOffset := pgo.NodeLineOffset(n, fn)
|
lineOffset := pgo.NodeLineOffset(n, ir.CurFunc)
|
||||||
csi := pgo.CallSiteInfo{LineOffset: lineOffset, Caller: ir.CurFunc}
|
csi := pgo.CallSiteInfo{LineOffset: lineOffset, Caller: ir.CurFunc}
|
||||||
if _, ok := candHotEdgeMap[csi]; ok {
|
if _, ok := candHotEdgeMap[csi]; ok {
|
||||||
if fn.Inl.Cost > inlineHotMaxBudget {
|
if fn.Inl.Cost > inlineHotMaxBudget {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue