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

Issue 36710043: code review 36710043: go.tools/ssa: FindSwitches() utility infers multiway br... (Closed)

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

Description

go.tools/ssa/ssautil: Switches() utility infers multiway branches. (Note new subpackage ssa/ssautil.)

Patch Set 1 #

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

Total comments: 24

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

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

Patch Set 5 : diff -r 55504f60f053 https://code.google.com/p/go.tools #

Patch Set 6 : diff -r 55504f60f053 https://code.google.com/p/go.tools #

Patch Set 7 : diff -r 5ff8080945aa https://code.google.com/p/go.tools #

Total comments: 19

Patch Set 8 : diff -r 5ff8080945aa https://code.google.com/p/go.tools #

Patch Set 9 : diff -r 5ff8080945aa https://code.google.com/p/go.tools #

Total comments: 1

Patch Set 10 : diff -r 5ff8080945aa https://code.google.com/p/go.tools #

Unified diffs Side-by-side diffs Delta from patch set Stats (+642 lines, -0 lines) Patch
A ssa/ssautil/switch.go View 1 2 3 4 5 6 7 8 9 1 chunk +234 lines, -0 lines 0 comments Download
A ssa/ssautil/switch_test.go View 1 2 3 4 5 6 7 1 chunk +69 lines, -0 lines 0 comments Download
A ssa/ssautil/testdata/switches.go View 1 2 3 4 5 6 7 1 chunk +339 lines, -0 lines 0 comments Download

Messages

Total messages: 10
adonovan
Hello gri@golang.org, axwalk@gmail.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.tools/
10 years, 4 months ago (2013-12-03 20:58:27 UTC) #1
axw
On 2013/12/03 20:58:27, adonovan wrote: > Hello mailto:gri@golang.org, mailto:axwalk@gmail.com (cc: mailto:golang-dev@googlegroups.com), > > I'd like ...
10 years, 4 months ago (2013-12-04 00:36:22 UTC) #2
gri1
https://codereview.appspot.com/36710043/diff/20001/ssa/findswitch.go File ssa/findswitch.go (right): https://codereview.appspot.com/36710043/diff/20001/ssa/findswitch.go#newcode14 ssa/findswitch.go:14: // - a lookup table (for a switch that ...
10 years, 4 months ago (2013-12-04 01:09:49 UTC) #3
adonovan
https://codereview.appspot.com/36710043/diff/20001/ssa/findswitch.go File ssa/findswitch.go (right): https://codereview.appspot.com/36710043/diff/20001/ssa/findswitch.go#newcode14 ssa/findswitch.go:14: // - a lookup table (for a switch that ...
10 years, 4 months ago (2013-12-04 02:43:43 UTC) #4
adonovan
Hello gri@golang.org, axwalk@gmail.com, gri@google.com (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 4 months ago (2013-12-04 02:44:15 UTC) #5
adonovan
NB: now split off into its ssa/ssautil subpackage. (gri: please add this to your 'working ...
10 years, 4 months ago (2013-12-05 15:05:14 UTC) #6
gri1
Should the findswitch.go file now simple be called switch.go ? https://codereview.appspot.com/36710043/diff/120001/ssa/ssautil/findswitch.go File ssa/ssautil/findswitch.go (right): https://codereview.appspot.com/36710043/diff/120001/ssa/ssautil/findswitch.go#newcode18 ...
10 years, 4 months ago (2013-12-05 18:04:35 UTC) #7
adonovan
> Should the findswitch.go file now simple be called switch.go ? Done. Also s/FindSwitches/Switches/g. https://codereview.appspot.com/36710043/diff/120001/ssa/ssautil/findswitch.go ...
10 years, 4 months ago (2013-12-05 19:26:58 UTC) #8
gri1
LGTM https://codereview.appspot.com/36710043/diff/160001/ssa/ssautil/switch.go File ssa/ssautil/switch.go (right): https://codereview.appspot.com/36710043/diff/160001/ssa/ssautil/switch.go#newcode51 ssa/ssautil/switch.go:51: // One of ConstCases and TypeCases has length ...
10 years, 4 months ago (2013-12-05 20:19:02 UTC) #9
adonovan
10 years, 4 months ago (2013-12-05 22:00:20 UTC) #10
*** Submitted as
https://code.google.com/p/go/source/detail?r=b522e6a8d9b8&repo=tools ***

go.tools/ssa/ssautil: Switches() utility infers multiway branches.

(Note new subpackage ssa/ssautil.)

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

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