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

Issue 12789043: code review 12789043: cmd/gc: support for "portable" optimization logic (Closed)

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

Description

cmd/gc: support for "portable" optimization logic Code in gc/popt.c is compiled as part of 5g, 6g, and 8g, meaning it can use arch-specific headers but there's just one copy of the code. This is the same arrangement we use for the portable code generation logic in gc/pgen.c. Move fixjmp and noreturn there to get the ball rolling.

Patch Set 1 #

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -471 lines) Patch
M src/cmd/5g/gg.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/5g/opt.h View 1 2 3 4 chunks +10 lines, -2 lines 0 comments Download
M src/cmd/5g/peep.c View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/5g/prog.c View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/cmd/5g/reg.c View 1 2 3 5 chunks +2 lines, -151 lines 0 comments Download
M src/cmd/6g/gg.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/6g/opt.h View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download
M src/cmd/6g/peep.c View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/6g/prog.c View 1 2 2 chunks +2 lines, -5 lines 0 comments Download
M src/cmd/6g/reg.c View 1 2 3 5 chunks +2 lines, -150 lines 0 comments Download
M src/cmd/8g/gg.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/8g/opt.h View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download
M src/cmd/8g/peep.c View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/8g/prog.c View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M src/cmd/8g/reg.c View 1 2 3 4 chunks +2 lines, -149 lines 0 comments Download
M src/cmd/dist/build.c View 1 2 chunks +7 lines, -0 lines 0 comments Download
M src/cmd/gc/pgen.c View 1 1 chunk +4 lines, -0 lines 0 comments Download
A src/cmd/gc/popt.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
A src/cmd/gc/popt.c View 1 2 3 1 chunk +183 lines, -0 lines 0 comments Download

Messages

Total messages: 4
rsc
Hello ken2 (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
11 years, 10 months ago (2013-08-12 23:13:59 UTC) #1
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=82edc0e0cc18 *** cmd/gc: support for "portable" optimization logic Code in gc/popt.c is ...
11 years, 10 months ago (2013-08-12 23:14:06 UTC) #2
bradfitz
Nice. On Mon, Aug 12, 2013 at 4:13 PM, <rsc@golang.org> wrote: > Reviewers: ken2, > ...
11 years, 10 months ago (2013-08-12 23:17:18 UTC) #3
ken3
11 years, 10 months ago (2013-08-13 10:43:05 UTC) #4
Message was sent while issue was closed.
On 2013/08/12 23:17:18, bradfitz wrote:
> Nice.
> 
> 
> 
> 
> On Mon, Aug 12, 2013 at 4:13 PM, <mailto:rsc@golang.org> wrote:
> 
> > Reviewers: ken2,
> >
> > Message:
> > Hello ken2 (cc: mailto:golang-dev@googlegroups.com),
> >
> > I'd like you to review this change to
> > https://code.google.com/p/go/
> >
> >
> > Description:
> > cmd/gc: support for "portable" optimization logic
> >
> > Code in gc/popt.c is compiled as part of 5g, 6g, and 8g,
> > meaning it can use arch-specific headers but there's
> > just one copy of the code.
> >
> > This is the same arrangement we use for the portable
> > code generation logic in gc/pgen.c.
> >
> > Move fixjmp and noreturn there to get the ball rolling.
> >
> > Please review this at
>
https://codereview.appspot.**com/12789043/%3Chttps://codereview.appspot.com/1...>
> >
> > Affected files:
> >   M src/cmd/5g/gg.h
> >   M src/cmd/5g/opt.h
> >   M src/cmd/5g/peep.c
> >   M src/cmd/5g/prog.c
> >   M src/cmd/5g/reg.c
> >   M src/cmd/6g/gg.h
> >   M src/cmd/6g/opt.h
> >   M src/cmd/6g/peep.c
> >   M src/cmd/6g/prog.c
> >   M src/cmd/6g/reg.c
> >   M src/cmd/8g/gg.h
> >   M src/cmd/8g/opt.h
> >   M src/cmd/8g/peep.c
> >   M src/cmd/8g/prog.c
> >   M src/cmd/8g/reg.c
> >   M src/cmd/dist/build.c
> >   M src/cmd/gc/pgen.c
> >   A src/cmd/gc/popt.c
> >   A src/cmd/gc/popt.h
> >
> >
> > --
> >
> > ---You received this message because you are subscribed to the Google
> > Groups "golang-dev" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to
>
mailto:golang-dev+unsubscribe@**googlegroups.com<golang-dev%2Bunsubscribe@googlegroups.com>
> > .
> > For more options, visit
>
https://groups.google.com/**groups/opt_out%3Chttps://groups.google.com/groups...>
> > .
> >
> >
> >

lgtm
Sign in to reply to this message.

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