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

Issue 6450163: code review 6450163: cmd/8g: roll back the small integer constant optimizati... (Closed)

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

Description

cmd/8g: roll back the small integer constant optimizations introduced in 13416:67c0b8c8fb29 "faster code, mainly for rotate" [1]. The codegen can run out of registers if there are too many small-int arithmetic ops. An alternative approach is to copy 6g's sbop/abop codegen to 8g, but this change is less risky. Fixes issue 3835. [1] http://code.google.com/p/go/source/diff?spec=svn67c0b8c8fb29b1b7b6221977af6b89cae787b941&name=67c0b8c8fb29&r=67c0b8c8fb29b1b7b6221977af6b89cae787b941&format=side&path=/src/cmd/8g/cgen.c

Patch Set 1 #

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

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

Patch Set 4 : diff -r 7611538f2e4a https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -7 lines) Patch
M src/cmd/8g/cgen.c View 1 1 chunk +1 line, -7 lines 0 comments Download
A test/fixedbugs/bug451.go View 1 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 8
nigeltao
Hello rsc@golang.org (cc: golang-dev@googlegroups.com, remyoudompheng@gmail.com), I'd like you to review this change to https://code.google.com/p/go
11 years, 9 months ago (2012-08-20 07:21:25 UTC) #1
remyoudompheng
LGTM, can someone else have a look?
11 years, 8 months ago (2012-08-22 21:13:19 UTC) #2
rsc
LGTM This is fine if you reopen the bug after submitting so that we remember ...
11 years, 8 months ago (2012-08-22 21:27:32 UTC) #3
r
Generating code AND allocating registers? Forsooth! Albert, get my gun. -rob
11 years, 8 months ago (2012-08-22 21:30:35 UTC) #4
remyoudompheng
On 2012/08/22 21:27:32, rsc wrote: > Alternately, I think this might fix it now: > ...
11 years, 8 months ago (2012-08-22 21:38:58 UTC) #5
nigeltao
*** Submitted as http://code.google.com/p/go/source/detail?r=f4f71c8c9f4d *** cmd/8g: roll back the small integer constant optimizations introduced in ...
11 years, 8 months ago (2012-08-23 06:17:36 UTC) #6
nigeltao
On 23 August 2012 07:27, <rsc@golang.org> wrote: > if(smallintconst(nr)) { > tempname(&n1, nl->type); > cgen(nl, ...
11 years, 8 months ago (2012-08-23 07:19:15 UTC) #7
rsc
11 years, 8 months ago (2012-08-31 16:55:16 UTC) #8
It probably was md5/sha1. Don't worry much about it. I reopened the
bug so we don't forget but it's not very high priority.
Sign in to reply to this message.

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