• Matthew Dempsky's avatar
    cmd/compile: record InlCost in export data · a509cae9
    Matthew Dempsky authored
    Previously, we were treating cross-package function calls as free for
    inlining budgeting.
    
    In theory, we should be able to recompute InlCost from the
    exported/reimported function bodies. However, that process mutates the
    structure of the Node AST enough that it doesn't preserve InlCost. To
    avoid unexpected issues, just record and restore InlCost in the export
    data.
    
    Fixes #19261.
    
    Change-Id: Iac2bc0d32d4f948b64524aca657051f9fc96d92d
    Reviewed-on: https://go-review.googlesource.com/70151
    Run-TryBot: Matthew Dempsky <mdempsky@google.com>
    Reviewed-by: 's avatarRobert Griesemer <gri@golang.org>
    a509cae9
Name
Last commit
Last update
..
amd64 Loading commit data...
arm Loading commit data...
arm64 Loading commit data...
gc Loading commit data...
mips Loading commit data...
mips64 Loading commit data...
ppc64 Loading commit data...
s390x Loading commit data...
ssa Loading commit data...
syntax Loading commit data...
test Loading commit data...
types Loading commit data...
x86 Loading commit data...