]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/cmd/compile/internal/inline/inl.go
cmd/compile/internal/inline/inlheur: remove pkg-level call site table
[gostls13.git] / src / cmd / compile / internal / inline / inl.go
index 992ae632e272c0dab23a4bab4770cca24a79a248..f3ad19d241232ee7923918c4ccd6e724e80b39e2 100644 (file)
@@ -978,7 +978,7 @@ func inlineCostOK(n *ir.CallExpr, caller, callee *ir.Func, bigCaller bool) (bool
 
        metric := callee.Inl.Cost
        if goexperiment.NewInliner {
-               ok, score := inlheur.GetCallSiteScore(n)
+               score, ok := inlheur.GetCallSiteScore(caller, n)
                if ok {
                        metric = int32(score)
                }