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

Issue 6209077: code review 6209077: cmd/gc: faster code, mainly for rotate (Closed)

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

Description

cmd/gc: faster code, mainly for rotate * Eliminate bounds check on known small shifts. * Rewrite x<<s | x>>(32-s) as a rotate (constant s). * More aggressive (but still minimal) range analysis.

Patch Set 1 #

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

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

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

Patch Set 5 : diff -r 443c7a2dabe9 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+925 lines, -117 lines) Patch
M src/cmd/5g/cgen.c View 1 2 4 chunks +5 lines, -3 lines 0 comments Download
M src/cmd/5g/cgen64.c View 1 2 3 2 chunks +42 lines, -0 lines 0 comments Download
M src/cmd/5g/gg.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/5g/ggen.c View 1 2 3 4 3 chunks +21 lines, -2 lines 0 comments Download
M src/cmd/5g/gsubr.c View 1 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/6g/cgen.c View 1 2 3 8 chunks +71 lines, -11 lines 0 comments Download
M src/cmd/6g/gg.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/6g/ggen.c View 1 3 chunks +15 lines, -12 lines 0 comments Download
M src/cmd/6g/gsubr.c View 1 2 3 4 11 chunks +56 lines, -16 lines 0 comments Download
M src/cmd/8g/cgen.c View 1 2 4 chunks +13 lines, -5 lines 0 comments Download
M src/cmd/8g/cgen64.c View 1 2 2 chunks +35 lines, -0 lines 0 comments Download
M src/cmd/8g/gg.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/8g/ggen.c View 1 2 3 chunks +31 lines, -21 lines 0 comments Download
M src/cmd/8g/gsubr.c View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M src/cmd/gc/go.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M src/cmd/gc/range.c View 1 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/gc/sinit.c View 1 2 chunks +3 lines, -3 lines 0 comments Download
M src/cmd/gc/subr.c View 1 2 chunks +3 lines, -3 lines 0 comments Download
M src/cmd/gc/walk.c View 1 2 3 9 chunks +189 lines, -36 lines 0 comments Download
A test/bounds.go View 1 2 3 1 chunk +277 lines, -0 lines 0 comments Download
A test/rotate.go View 1 2 3 1 chunk +141 lines, -0 lines 0 comments Download

Messages

Total messages: 7
rsc
Hello ken2 (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 12 months ago (2012-05-18 00:27:06 UTC) #1
dave_cheney.net
Hi Russ, There is a compile error under clang-3.0. pando(~/go/src) % export CC=clang pando(~/go/src) % ...
11 years, 12 months ago (2012-05-18 04:42:16 UTC) #2
iant2
dave@cheney.net writes: > /home/dfc/go/src/cmd/gc/walk.c:870:8: error: self-comparison always > evaluates to false [-Werror,-Wtautological-compare] > if(t != ...
11 years, 12 months ago (2012-05-18 05:51:01 UTC) #3
dave_cheney.net
Thanks Ian, Now I'm getting another error on crypto/sha512. pando(~/go/src) % go build -x crypto/sha512 ...
11 years, 12 months ago (2012-05-18 06:03:59 UTC) #4
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=67c0b8c8fb29 *** cmd/gc: faster code, mainly for rotate * Eliminate bounds check ...
11 years, 11 months ago (2012-05-24 21:20:12 UTC) #5
remyoudompheng
Impressive: (Core 2 Quad 2.33 GHz) crypto/md5 benchmark old MB/s new MB/s speedup BenchmarkHash1K 190.89 ...
11 years, 11 months ago (2012-05-25 00:01:02 UTC) #6
rsc
11 years, 11 months ago (2012-05-25 02:28:02 UTC) #7
On Thu, May 24, 2012 at 8:01 PM,  <remyoudompheng@gmail.com> wrote:
> Impressive: (Core 2 Quad 2.33 GHz)
>
> crypto/md5
> benchmark           old MB/s     new MB/s  speedup
> BenchmarkHash1K       190.89       266.47    1.40x
> BenchmarkHash8K       196.35       289.04    1.47x

This 1.4x was included in the 3x the earlier CL was claiming.

Russ
Sign in to reply to this message.

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