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

Issue 7384054: code review 7384054: exp/ssa: fixed bug (typo) in findPromotedField. (Closed)

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

Description

exp/ssa: fixed bug (typo) in findPromotedField. By appending to the wrong (always empty) list, only the last anonymous field was being considered for promotion. Also: - eliminated "function-local NamedTypes" TODO; nothing to do. - fixed Function.DumpTo: printing of anon receivers was "( T)", now "(T)"; extracted writeSignature into own function. - eliminated blockNames function; thanks to BasicBlock.String, "%s" of []*BasicBlock is fine. - extracted buildReferrers into own function. exp/ssa can now build its own transitive closure.

Patch Set 1 #

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

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

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

Patch Set 5 : diff -r 52aea5898ab8 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -66 lines) Patch
M src/pkg/exp/ssa/builder.go View 1 1 chunk +0 lines, -2 lines 0 comments Download
M src/pkg/exp/ssa/func.go View 1 2 5 chunks +63 lines, -46 lines 0 comments Download
M src/pkg/exp/ssa/promote.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/exp/ssa/sanity.go View 1 4 chunks +2 lines, -17 lines 0 comments Download

Messages

Total messages: 3
adonovan
Hello gri@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
12 years ago (2013-02-22 15:51:51 UTC) #1
gri
LGTM
12 years ago (2013-02-22 17:30:03 UTC) #2
adonovan
12 years ago (2013-02-22 17:35:48 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=ebebb95cff06 ***

exp/ssa: fixed bug (typo) in findPromotedField.

By appending to the wrong (always empty) list, only the last
anonymous field was being considered for promotion.

Also:
- eliminated "function-local NamedTypes" TODO; nothing to do.
- fixed Function.DumpTo: printing of anon receivers was "( T)",
  now "(T)"; extracted writeSignature into own function.
- eliminated blockNames function;
  thanks to BasicBlock.String, "%s" of []*BasicBlock is fine.
- extracted buildReferrers into own function.

exp/ssa can now build its own transitive closure.

R=gri
CC=golang-dev
https://codereview.appspot.com/7384054
Sign in to reply to this message.

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