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

Issue 6817085: code review 6817085: cmd/5g: enable xtramodes optimisation (Closed)

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

Description

cmd/5g: enable xtramodes optimisation xtramodes' C_PBIT optimisation transforms: MOVW 0(R3),R1 ADD $4,R3,R3 into: MOVW.P 4(R3),R1 and the AADD optimisation tranforms: ADD R0,R1 MOVBU 0(R1),R0 into: MOVBU R0<<0(R1),R0 5g does not appear to generate sequences that can be transformed by xtramodes' AMOVW.

Patch Set 1 #

Patch Set 2 : diff -r f781c447da6e https://code.google.com/p/go #

Patch Set 3 : diff -r f781c447da6e https://code.google.com/p/go #

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

Total comments: 18

Patch Set 5 : diff -r 1369d7bb329d https://code.google.com/p/go #

Patch Set 6 : diff -r 1369d7bb329d https://code.google.com/p/go #

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -23 lines) Patch
M src/cmd/5g/peep.c View 1 2 3 4 9 chunks +48 lines, -23 lines 0 comments Download

Messages

Total messages: 13
dfc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 5 months ago (2012-11-05 12:09:05 UTC) #1
remyoudompheng
igen is supposed to be there to avoid generating sequences that can be optimized like ...
11 years, 5 months ago (2012-11-05 16:07:04 UTC) #2
dfc
Heaps The pbit optimisation kicks in for the inc at the bottom of every range ...
11 years, 5 months ago (2012-11-05 16:11:55 UTC) #3
remyoudompheng
On 2012/11/5 Dave Cheney <dave@cheney.net> wrote: > Heaps > > The pbit optimisation kicks in ...
11 years, 5 months ago (2012-11-05 21:02:34 UTC) #4
dfc
Yes, I also use -S once I figure out the prog that is being transformed. ...
11 years, 5 months ago (2012-11-05 21:42:11 UTC) #5
remyoudompheng
I think it's an opportunity to make the intention more explicit. My comments suggestions may ...
11 years, 5 months ago (2012-11-05 22:13:30 UTC) #6
rsc
i'm happy once remy is https://codereview.appspot.com/6817085/diff/6001/src/cmd/5g/peep.c File src/cmd/5g/peep.c (right): https://codereview.appspot.com/6817085/diff/6001/src/cmd/5g/peep.c#newcode855 src/cmd/5g/peep.c:855: if(debug['h'] && p->as == ...
11 years, 5 months ago (2012-11-06 19:03:30 UTC) #7
remyoudompheng
http://codereview.appspot.com/6817085/diff/6001/src/cmd/5g/peep.c File src/cmd/5g/peep.c (right): http://codereview.appspot.com/6817085/diff/6001/src/cmd/5g/peep.c#newcode864 src/cmd/5g/peep.c:864: case AADD: 5g generates ADD.S/ADC for addition of int64's. ...
11 years, 5 months ago (2012-11-07 07:00:44 UTC) #8
dfc
On 07/11/2012, at 18:00, remyoudompheng@gmail.com wrote: > > http://codereview.appspot.com/6817085/diff/6001/src/cmd/5g/peep.c > File src/cmd/5g/peep.c (right): > > ...
11 years, 5 months ago (2012-11-07 07:23:07 UTC) #9
dfc
Thank you for your comments, I have tried to address as many of them as ...
11 years, 5 months ago (2012-11-07 09:40:31 UTC) #10
dfc
Hello remyoudompheng@gmail.com, rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
11 years, 5 months ago (2012-11-07 09:40:47 UTC) #11
remyoudompheng
LGTM
11 years, 5 months ago (2012-11-10 18:56:08 UTC) #12
dfc
11 years, 5 months ago (2012-11-10 20:51:42 UTC) #13
*** Submitted as http://code.google.com/p/go/source/detail?r=422c00e8e022 ***

cmd/5g: enable xtramodes optimisation

xtramodes' C_PBIT optimisation transforms:

MOVW          0(R3),R1
ADD           $4,R3,R3

into:

MOVW.P        4(R3),R1

and the AADD optimisation tranforms:

ADD          R0,R1
MOVBU        0(R1),R0

into:

MOVBU        R0<<0(R1),R0

5g does not appear to generate sequences that
can be transformed by xtramodes' AMOVW.

R=remyoudompheng, rsc
CC=golang-dev
http://codereview.appspot.com/6817085
Sign in to reply to this message.

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