mirror of
https://github.com/golang/go
synced 2024-11-17 18:54:42 -07: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
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user