]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: bypass DATA instruction for data initialized to integer constant
authorRuss Cox <rsc@golang.org>
Fri, 20 Dec 2013 19:24:39 +0000 (14:24 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 20 Dec 2013 19:24:39 +0000 (14:24 -0500)
commit4acb70d3772f5904095eb9641367625917cfa780
tree83b45f32baad6d851b97c9690fc3b976896dbefa
parentdc8572c3fe1d77378a6deff2f05a4e04ae5061a8
cmd/gc: bypass DATA instruction for data initialized to integer constant

Eventually we will want to bypass DATA for everything,
but the relocations are not standardized well enough across
architectures to make that possible.

This did not help as much as I expected, but it is definitely better.
It shaves maybe 1-2% off all.bash depending on how much you
trust the timings of a single run:

Before: 241.139r 362.702u 112.967s
After:  234.339r 359.623u 111.045s

R=golang-codereviews, gobot, r, iant
CC=golang-codereviews
https://golang.org/cl/44650043
src/cmd/5g/gobj.c
src/cmd/6g/gobj.c
src/cmd/8g/gobj.c
src/cmd/gc/obj.c