diff options
| author | Cherry Mui <cherryyz@google.com> | 2022-11-07 18:04:58 -0500 |
|---|---|---|
| committer | Cherry Mui <cherryyz@google.com> | 2022-11-08 16:35:09 +0000 |
| commit | 0409314db39db8f1d587fff31f79a24f1aa36ad2 (patch) | |
| tree | e06688d115fcf5cd1e61d344f8828663d21b3631 /src/cmd/compile/internal/inline | |
| parent | 6939659a085de15ba7e08ebe0c8864616ba21b76 (diff) | |
| download | go-0409314db39db8f1d587fff31f79a24f1aa36ad2.tar.xz | |
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>
Diffstat (limited to 'src/cmd/compile/internal/inline')
| -rw-r--r-- | src/cmd/compile/internal/inline/inl.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/inline/inl.go b/src/cmd/compile/internal/inline/inl.go index 2260a90d50..be4773ab28 100644 --- a/src/cmd/compile/internal/inline/inl.go +++ b/src/cmd/compile/internal/inline/inl.go @@ -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 { |
