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

Issue 7030046: code review 7030046: cmd/6g, cmd/8g: Allow optimization of return registers. (Closed)

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

Description

cmd/6g, cmd/8g: Allow optimization of return registers. The peephole optimizer would keep hands off AX and X0 during returns, even though go doesn't return through registers.

Patch Set 1 #

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

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

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

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

Messages

Total messages: 6
DMorsing
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
12 years, 6 months ago (2012-12-30 20:09:59 UTC) #1
dave_cheney.net
Hello, Can you provide some before/after asm samples ? Cheers Dave On Mon, Dec 31, ...
12 years, 6 months ago (2012-12-30 21:43:01 UTC) #2
DMorsing
On Sun, Dec 30, 2012 at 10:43 PM, Dave Cheney <dave@cheney.net> wrote: > Hello, > ...
12 years, 6 months ago (2012-12-30 22:25:23 UTC) #3
dave_cheney.net
Excellent. This was a problem in 5g that minux and I had been discussing since ...
12 years, 6 months ago (2012-12-30 22:26:07 UTC) #4
rsc
LGTM
12 years, 6 months ago (2013-01-02 20:02:53 UTC) #5
DMorsing
12 years, 6 months ago (2013-01-11 14:44:50 UTC) #6
*** Submitted as https://code.google.com/p/go/source/detail?r=da05833bf12e ***

cmd/6g, cmd/8g: Allow optimization of return registers.

The peephole optimizer would keep hands off AX and X0 during returns, even
though go doesn't return through registers.

R=dave, rsc
CC=golang-dev
https://codereview.appspot.com/7030046
Sign in to reply to this message.

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