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

Issue 7221077: code review 7221077: cmd/6g, cmd/8g: add address propagation to peepholes.

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 7 months ago by remyoudompheng
Modified:
11 years, 7 months ago
Reviewers:
dave, DMorsing, rsc
CC:
golang-codereviews
Visibility:
Public.

Description

cmd/6g, cmd/8g: add address propagation to peepholes. This peephole optimization applies to sequences like: LEAQ (BX)(BP*4), SI MOVQ (SI), BP by turning them into MOVQ (BX)(BP*4), BP when applicable. The latter form was naturally produced in code generation when using the sudoaddable method.

Patch Set 1 #

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

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

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

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+389 lines, -0 lines) Patch
M src/cmd/6g/peep.c View 1 2 3 4 chunks +198 lines, -0 lines 3 comments Download
M src/cmd/8g/peep.c View 1 2 3 3 chunks +191 lines, -0 lines 0 comments Download

Messages

Total messages: 21
remyoudompheng
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 7 months ago (2013-01-30 23:19:03 UTC) #1
dave_cheney.net
Update issue 1914. maybe ?
12 years, 7 months ago (2013-01-30 23:33:10 UTC) #2
remyoudompheng
I seem to have uploaded a broken version.
12 years, 7 months ago (2013-01-30 23:35:39 UTC) #3
dave_cheney.net
This is happening constantly, has anyone logged a bug on rietveld about this ? On ...
12 years, 7 months ago (2013-01-30 23:36:13 UTC) #4
remyoudompheng
On 2013/01/30 23:36:13, dfc wrote: > This is happening constantly, has anyone logged a bug ...
12 years, 7 months ago (2013-01-31 00:04:07 UTC) #5
dave_cheney.net
Ahh right. My mistake. I can test on 386, are there any specific packages which ...
12 years, 7 months ago (2013-01-31 00:10:34 UTC) #6
remyoudompheng
The goal was to speed up the following code (adapted from crypto/rc4) benchmark old MB/s ...
12 years, 7 months ago (2013-01-31 00:12:29 UTC) #7
remyoudompheng
On 2013/01/31 00:12:29, remyoudompheng wrote: > The goal was to speed up the following code ...
12 years, 7 months ago (2013-01-31 00:13:14 UTC) #8
rsc
This is fine but I suspect you can get even better performance if you can ...
12 years, 7 months ago (2013-01-31 00:13:39 UTC) #9
remyoudompheng
On 2013/01/31 00:10:34, dfc wrote: > Ahh right. My mistake. > > I can test ...
12 years, 7 months ago (2013-01-31 00:14:40 UTC) #10
remyoudompheng
On 2013/01/31 00:13:39, rsc wrote: > This is fine but I suspect you can get ...
12 years, 7 months ago (2013-01-31 00:24:29 UTC) #11
dave_cheney.net
Applying both CLs on linux/386, benchmarks for crypto/rc4 appear to have regressed by 10% 220887(~/go/src/pkg/crypto/rc4) ...
12 years, 7 months ago (2013-01-31 00:44:37 UTC) #12
dave_cheney.net
go1 benchmarks tell a confusing story 220887(~/go/test/bench/go1) % ./go1.07047d188e5d+ -test.bench=. > old.txt && ./go1.test -test.bench=. ...
12 years, 7 months ago (2013-01-31 00:53:18 UTC) #13
DMorsing
First impressions here. I will probably look at this more closely some other time. https://codereview.appspot.com/7221077/diff/9001/src/cmd/6g/peep.c ...
12 years, 7 months ago (2013-01-31 13:01:34 UTC) #14
remyoudompheng
On 2013/01/31 00:44:37, dfc wrote: > Applying both CLs on linux/386, benchmarks for crypto/rc4 appear ...
12 years, 7 months ago (2013-01-31 20:59:48 UTC) #15
dave_cheney.net
220887(~) % uname -a Linux 220887 3.2.0-32-generic-pae #51-Ubuntu SMP Wed Sep 26 21:54:23 UTC 2012 ...
12 years, 7 months ago (2013-01-31 21:29:23 UTC) #16
dave_cheney.net
ping
12 years, 7 months ago (2013-02-13 09:08:17 UTC) #17
rsc
My main reservation is that I think the compiler should do a better job avoiding ...
12 years, 7 months ago (2013-02-14 21:57:36 UTC) #18
rsc
Let's hold off on this now until after Go 1.1. Thanks.
12 years, 6 months ago (2013-03-19 18:31:10 UTC) #19
gobot
Replacing golang-dev with golang-codereviews.
11 years, 9 months ago (2013-12-20 16:21:42 UTC) #20
dave_cheney.net
11 years, 7 months ago (2014-01-31 00:04:16 UTC) #21
I think this CL is dead.

R=close
Sign in to reply to this message.

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