]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: de-dup the gclocals symbols in compiler too
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Mon, 28 Mar 2016 09:27:36 +0000 (22:27 +1300)
committerMichael Hudson-Doyle <michael.hudson@canonical.com>
Wed, 27 Apr 2016 22:07:17 +0000 (22:07 +0000)
commitf4d38a87927f42272c7dfd10283beac8865edeab
treebf44abe22b38a743866e15ff9e9369635dcbd55b
parentd3c79d324acd7300b6f705e66af8ca711af00d9f
cmd/compile: de-dup the gclocals symbols in compiler too

These symbols are de-duplicated in the linker but the compiler generates quite
many duplicates too: 2425 of 13769 total symbols for runtime.a for example.
De-duplicating them in the compiler saves the linker a bit of work.

Fixes #14983

Change-Id: I5f18e5f9743563c795aad8f0a22d17a7ed147711
Reviewed-on: https://go-review.googlesource.com/22293
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/cmd/compile/internal/gc/pgen.go
src/cmd/compile/internal/gc/plive.go
src/cmd/compile/internal/gc/ssa.go