]> Cypherpunks repositories - gostls13.git/commit
cmd/6g: relax constraint on variables that need zeroing.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Wed, 9 Apr 2014 19:23:36 +0000 (21:23 +0200)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Wed, 9 Apr 2014 19:23:36 +0000 (21:23 +0200)
commitf400d9aafc961c18e3289a0e701e61b2482a342a
treeaa18b178c0bfd2bb454cf337df314f8af5b0897b
parent3d63ec240edfc596a8840f7a7e5218fa28e55c04
cmd/6g: relax constraint on variables that need zeroing.

On amd64p32 pointers are 32-bit-aligned and cannot be assumed to
have an offset multiple of widthreg. Instead check that they are
withptr-aligned.

Also change the threshold for region merging to 2*widthreg
instead of 2*widthptr because performance on amd64 and amd64p32
is expected to be the same.

Fixes #7712.

LGTM=khr
R=rsc, dave, khr, brad, bradfitz
CC=golang-codereviews
https://golang.org/cl/84690044
src/cmd/6g/ggen.c