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

Issue 51740044: code review 51740044: cmd/6g: faster memmove/memset-like code using unaligned... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 5 months ago by remyoudompheng
Modified:
11 years, 4 months ago
Reviewers:
khr
CC:
iant, rsc, golang-codereviews
Visibility:
Public.

Description

cmd/6g: faster memmove/memset-like code using unaligned load/stores. This changes makes sgen and clearfat use unaligned instructions for the trailing bytes, like the runtime memmove does, resulting in faster code when manipulating types whose size is not a multiple of 8.

Patch Set 1 #

Patch Set 2 : diff -r 4106a965e536 http://code.google.com/p/go #

Patch Set 3 : diff -r 4106a965e536 http://code.google.com/p/go #

Patch Set 4 : diff -r 4106a965e536 http://code.google.com/p/go #

Patch Set 5 : diff -r 4106a965e536 http://code.google.com/p/go #

Total comments: 5

Patch Set 6 : diff -r d067c6de4ec3 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r d067c6de4ec3 https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r a2fe41181fe1 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -13 lines) Patch
M src/cmd/6g/cgen.c View 1 2 3 4 5 1 chunk +27 lines, -8 lines 0 comments Download
M src/cmd/6g/ggen.c View 1 2 3 4 5 6 2 chunks +19 lines, -5 lines 0 comments Download

Messages

Total messages: 12
remyoudompheng
Hello khr@golang.org, iant@golang.org, rsc@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to http://code.google.com/p/go
11 years, 5 months ago (2014-02-03 06:23:56 UTC) #1
remyoudompheng
I have some trouble understanding why sgen needs to handle overlapping regions. I have done ...
11 years, 5 months ago (2014-02-03 06:27:57 UTC) #2
khr
On 2014/02/03 06:27:57, remyoudompheng wrote: > I have some trouble understanding why sgen needs to ...
11 years, 5 months ago (2014-02-04 22:23:53 UTC) #3
khr
https://codereview.appspot.com/51740044/diff/20002/src/cmd/6g/cgen.c File src/cmd/6g/cgen.c (right): https://codereview.appspot.com/51740044/diff/20002/src/cmd/6g/cgen.c#newcode1457 src/cmd/6g/cgen.c:1457: if(c > 4) { Don't you need the overlap ...
11 years, 5 months ago (2014-02-05 06:03:44 UTC) #4
remyoudompheng
On 2014/02/04 22:23:53, khr wrote: > On 2014/02/03 06:27:57, remyoudompheng wrote: > > I have ...
11 years, 5 months ago (2014-02-05 07:48:13 UTC) #5
remyoudompheng
Hello khr@golang.org, iant@golang.org, rsc@golang.org (cc: golang-codereviews@googlegroups.com), Please take another look.
11 years, 5 months ago (2014-02-07 00:53:31 UTC) #6
khr
On 2014/02/07 00:53:31, remyoudompheng wrote: > Hello mailto:khr@golang.org, mailto:iant@golang.org, mailto:rsc@golang.org (cc: > mailto:golang-codereviews@googlegroups.com), > > ...
11 years, 5 months ago (2014-02-07 01:09:47 UTC) #7
remyoudompheng
Hello khr@golang.org, iant@golang.org, rsc@golang.org (cc: golang-codereviews@googlegroups.com), Please take another look.
11 years, 4 months ago (2014-02-07 07:36:01 UTC) #8
remyoudompheng
https://codereview.appspot.com/51740044/diff/20002/src/cmd/6g/ggen.c File src/cmd/6g/ggen.c (right): https://codereview.appspot.com/51740044/diff/20002/src/cmd/6g/ggen.c#newcode1053 src/cmd/6g/ggen.c:1053: nodconst(&z, types[TINT64], 0); On 2014/02/05 06:03:44, khr wrote: > ...
11 years, 4 months ago (2014-02-07 07:36:57 UTC) #9
khr
On 2014/02/07 07:36:57, remyoudompheng wrote: > https://codereview.appspot.com/51740044/diff/20002/src/cmd/6g/ggen.c > File src/cmd/6g/ggen.c (right): > > https://codereview.appspot.com/51740044/diff/20002/src/cmd/6g/ggen.c#newcode1053 > ...
11 years, 4 months ago (2014-02-07 08:44:36 UTC) #10
remyoudompheng
*** Submitted as https://code.google.com/p/go/source/detail?r=ec5195954667 *** cmd/6g: faster memmove/memset-like code using unaligned load/stores. This changes makes ...
11 years, 4 months ago (2014-02-07 23:09:09 UTC) #11
khr
11 years, 4 months ago (2014-02-11 22:34:57 UTC) #12
Message was sent while issue was closed.
On 2014/02/07 23:09:09, remyoudompheng wrote:
> *** Submitted as https://code.google.com/p/go/source/detail?r=ec5195954667 ***
> 
> cmd/6g: faster memmove/memset-like code using unaligned load/stores.
> 
> This changes makes sgen and clearfat use unaligned instructions for
> the trailing bytes, like the runtime memmove does, resulting in faster
> code when manipulating types whose size is not a multiple of 8.
> 
> LGTM=khr
> R=khr, iant, rsc
> CC=golang-codereviews
> https://codereview.appspot.com/51740044

R=close
Sign in to reply to this message.

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