• Matthew Dempsky's avatar
    cmd/internal/obj: drop Addr's Gotype field · 7124056f
    Matthew Dempsky authored
    The Gotype field is only used for ATYPE instructions. Instead of
    specially storing the Go type symbol in From.Gotype, just store it in
    To.Sym like any other 2-argument instruction would.
    
    Modest reduction in allocations:
    
    name       old alloc/op    new alloc/op    delta
    Template      42.0MB ± 0%     41.8MB ± 0%  -0.40%         (p=0.000 n=9+10)
    Unicode       34.3MB ± 0%     34.1MB ± 0%  -0.48%         (p=0.000 n=9+10)
    GoTypes        122MB ± 0%      122MB ± 0%  -0.14%         (p=0.000 n=9+10)
    Compiler       518MB ± 0%      518MB ± 0%  -0.04%         (p=0.000 n=9+10)
    
    Passes toolstash -cmp.
    
    Change-Id: I0e603266b5d7d4e405106a26369e22773a0d3a91
    Reviewed-on: https://go-review.googlesource.com/31850
    Run-TryBot: Matthew Dempsky <mdempsky@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    7124056f
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...