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

Issue 5606061: code review 5606061: cmd/gc: fix codegen reordering for expressions involvin... (Closed)

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

Description

cmd/gc: fix codegen reordering for expressions involving && and || Fixes issue 2821.

Patch Set 1 #

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

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

Patch Set 4 : diff -r 7c35ab6ef473 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 42021369841c https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -1 line) Patch
M src/cmd/gc/subr.c View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M src/cmd/gc/walk.c View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
A test/fixedbugs/bug406.go View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 9
lvd
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 3 months ago (2012-02-03 10:27:05 UTC) #1
rsc
Ouch. Thanks for finding this. It's a little odd to single out OANDAND and OOROR ...
12 years, 3 months ago (2012-02-03 14:51:34 UTC) #2
lvd
On Fri, Feb 3, 2012 at 15:51, Russ Cox <rsc@golang.org> wrote: > Ouch. Thanks for ...
12 years, 3 months ago (2012-02-03 15:03:11 UTC) #3
lvd
btw its not that the andand has a potential ninit, its that its ->rigth gets ...
12 years, 3 months ago (2012-02-03 16:18:27 UTC) #4
rsc
Right so its right should have a ninit and be UINF which should percolate up.
12 years, 3 months ago (2012-02-03 16:25:16 UTC) #5
lvd
On 2012/02/03 16:25:16, rsc wrote: > Right so its right should have a ninit and ...
12 years, 3 months ago (2012-02-06 10:38:46 UTC) #6
lvd
On 2012/02/06 10:38:46, lvd wrote: > On 2012/02/03 16:25:16, rsc wrote: > > Right so ...
12 years, 3 months ago (2012-02-06 10:49:31 UTC) #7
rsc
LGTM
12 years, 3 months ago (2012-02-06 14:34:44 UTC) #8
lvd
12 years, 3 months ago (2012-02-06 14:41:06 UTC) #9
*** Submitted as http://code.google.com/p/go/source/detail?r=58badc8d57f6 ***

cmd/gc: fix codegen reordering for expressions involving && and ||

Fixes issue 2821.

R=rsc
CC=golang-dev
http://codereview.appspot.com/5606061
Sign in to reply to this message.

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