]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/compile: make read-only static temps content-addressable
authorCherry Zhang <cherryyz@google.com>
Thu, 16 Jul 2020 00:01:32 +0000 (20:01 -0400)
committerCherry Zhang <cherryyz@google.com>
Mon, 20 Jul 2020 17:26:05 +0000 (17:26 +0000)
commit289c238a339c59737b7f271b19bc9217e7d69851
treef18f8278ca48f4634ba89e18c3e5269679873be6
parent3dabaa44e8705b429f66b267cffe4a5b12f06acb
[dev.link] cmd/compile: make read-only static temps content-addressable

For now, we only do this for symbols without relocations.

Mark static temps "local", as they are not referenced across DSO
boundaries. And deduplicating a local symbol and a non-local
symbol can be problematic.

Change-Id: I0a3dc4138aaeea7fd4f326998f32ab6305da8e4b
Reviewed-on: https://go-review.googlesource.com/c/go/+/243141
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/compile/internal/gc/order.go
src/cmd/compile/internal/gc/sinit.go
src/cmd/compile/internal/gc/walk.go
src/cmd/internal/obj/objfile2.go
src/cmd/internal/obj/sym.go