]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/cmd/compile/internal/inline/inlheur/callsite.go
cmd/compile/internal/inline: rework call scoring for non-inlinable funcs
[gostls13.git] / src / cmd / compile / internal / inline / inlheur / callsite.go
index 7a1830fd68a335125ca31a5cf95fdab94ced115e..d62215cb37cf7cbb9fd04a61e7bd249430d6c5b6 100644 (file)
@@ -41,18 +41,6 @@ type CallSite struct {
 // with many calls that share the same auto-generated pos.
 type CallSiteTab map[*ir.CallExpr]*CallSite
 
-func GetCallSiteScore(fn *ir.Func, call *ir.CallExpr) (int, bool) {
-       if funcInlHeur, ok := fpmap[fn]; !ok {
-               return 0, false
-       } else {
-               cs, ok := funcInlHeur.cstab[call]
-               if !ok {
-                       return 0, false
-               }
-               return cs.Score, true
-       }
-}
-
 type CSPropBits uint32
 
 const (