Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(172)

Issue 84690044: code review 84690044: cmd/6g: relax constraint on variables that need zeroing. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by remyoudompheng
Modified:
11 years, 1 month ago
Reviewers:
khr1
CC:
rsc, dave_cheney.net, khr, brad, khr1, bradfitz, golang-codereviews
Visibility:
Public.

Description

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 issue 7712.

Patch Set 1 #

Patch Set 2 : diff -r 88b3b2fa4dde https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 88b3b2fa4dde https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 1eaf29392348 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -3 lines) Patch
M src/cmd/6g/ggen.c View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 4
remyoudompheng
Hello rsc@golang.org, dave@cheney.net, khr@golang.org, brad@fitzpat.com (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to ...
11 years, 1 month ago (2014-04-05 08:33:32 UTC) #1
khr1
LGTM. But if widthptr < widthreg, then zerorange will have to be modified - it ...
11 years, 1 month ago (2014-04-05 17:13:04 UTC) #2
bradfitz
ping. Remy? On Sat, Apr 5, 2014 at 10:13 AM, Keith Randall <khr@google.com> wrote: > ...
11 years, 1 month ago (2014-04-09 18:04:15 UTC) #3
remyoudompheng
11 years, 1 month ago (2014-04-09 19:23:41 UTC) #4
*** Submitted as https://code.google.com/p/go/source/detail?r=e78b0ce80da3 ***

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 issue 7712.

LGTM=khr
R=rsc, dave, khr, brad, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/84690044
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b