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

Issue 6442114: code review 6442114: cmd/6g, cmd/8g: eliminate short integer arithmetic when... (Closed)

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

Description

cmd/6g, cmd/8g: eliminate short integer arithmetic when possible. Fixes issue 3909. Fixes issue 3910.

Patch Set 1 #

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

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

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

Total comments: 8

Patch Set 5 : diff -r 62f087306b18 https://go.googlecode.com/hg/ #

Total comments: 3

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

Total comments: 2

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

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

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -44 lines) Patch
M src/cmd/6g/peep.c View 1 2 3 4 5 6 4 chunks +103 lines, -0 lines 0 comments Download
M src/cmd/8g/gsubr.c View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/cmd/8g/peep.c View 1 2 3 4 5 10 chunks +105 lines, -27 lines 1 comment Download
M test/fixedbugs/bug440_32.go View 1 1 chunk +4 lines, -4 lines 0 comments Download
M test/fixedbugs/bug440_64.go View 1 2 3 4 1 chunk +12 lines, -12 lines 0 comments Download

Messages

Total messages: 10
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, 11 months ago (2012-08-11 12:15:43 UTC) #1
remyoudompheng
This patch intends to replace CL 6446088 and CL 6459046 by eliminating short integer instructions ...
12 years, 11 months ago (2012-08-11 12:22:46 UTC) #2
nigeltao
http://codereview.appspot.com/6442114/diff/7001/src/cmd/6g/peep.c File src/cmd/6g/peep.c (right): http://codereview.appspot.com/6442114/diff/7001/src/cmd/6g/peep.c#newcode139 src/cmd/6g/peep.c:139: // byte, word arithmetic elimination. s/spaces/tabs/. Similarly on the ...
12 years, 11 months ago (2012-08-13 07:36:26 UTC) #3
remyoudompheng
Hello rsc@golang.org, nigeltao@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 11 months ago (2012-08-13 07:58:11 UTC) #4
remyoudompheng
http://codereview.appspot.com/6442114/diff/7001/src/cmd/6g/peep.c File src/cmd/6g/peep.c (right): http://codereview.appspot.com/6442114/diff/7001/src/cmd/6g/peep.c#newcode139 src/cmd/6g/peep.c:139: // byte, word arithmetic elimination. On 2012/08/13 07:36:26, nigeltao ...
12 years, 11 months ago (2012-08-13 07:59:23 UTC) #5
rsc
LGTM Looks fantastic. Thank you. http://codereview.appspot.com/6442114/diff/5006/src/cmd/6g/peep.c File src/cmd/6g/peep.c (right): http://codereview.appspot.com/6442114/diff/5006/src/cmd/6g/peep.c#newcode469 src/cmd/6g/peep.c:469: elimshortmov(Reg *r) { { ...
12 years, 10 months ago (2012-08-31 11:37:17 UTC) #6
remyoudompheng
Hello rsc@golang.org, nigeltao@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 10 months ago (2012-09-01 10:41:25 UTC) #7
rsc
LGTM http://codereview.appspot.com/6442114/diff/15001/src/cmd/6g/peep.c File src/cmd/6g/peep.c (right): http://codereview.appspot.com/6442114/diff/15001/src/cmd/6g/peep.c#newcode499 src/cmd/6g/peep.c:499: // TODO: also consider eliminating 32-bit ops? You ...
12 years, 10 months ago (2012-09-01 14:10:41 UTC) #8
remyoudompheng
*** Submitted as http://code.google.com/p/go/source/detail?r=79225d9f3ced *** cmd/6g, cmd/8g: eliminate short integer arithmetic when possible. Fixes issue ...
12 years, 10 months ago (2012-09-01 14:41:02 UTC) #9
minux1
12 years, 10 months ago (2012-09-02 19:25:24 UTC) #10
one possible typo

http://codereview.appspot.com/6442114/diff/21002/src/cmd/8g/peep.c
File src/cmd/8g/peep.c (right):

http://codereview.appspot.com/6442114/diff/21002/src/cmd/8g/peep.c#newcode310
src/cmd/8g/peep.c:310: // can smash the entire 64-bit register without
64-bit register?
Sign in to reply to this message.

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