1
0
mirror of https://github.com/golang/go synced 2024-09-29 22:34:33 -06: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:
Cherry Mui 2022-11-07 18:04:58 -05:00
parent 6939659a08
commit 0409314db3

View File

@ -919,7 +919,7 @@ func mkinlcall(n *ir.CallExpr, fn *ir.Func, maxCost int32, inlCalls *[]*ir.Inlin
}
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.
lineOffset := pgo.NodeLineOffset(n, fn)
lineOffset := pgo.NodeLineOffset(n, ir.CurFunc)
csi := pgo.CallSiteInfo{LineOffset: lineOffset, Caller: ir.CurFunc}
if _, ok := candHotEdgeMap[csi]; ok {
if fn.Inl.Cost > inlineHotMaxBudget {