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

Issue 92780044: go.tools: expose expression addressability from the typ... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by pcc
Modified:
9 years, 9 months ago
Reviewers:
gri, adonovan
CC:
golang-codereviews
Visibility:
Public.

Description

go.tools: expose expression addressability from the type checker This is used by the ssa package to form loads from addressable expressions wherever possible instead of loading entire aggregates and extracting elements (which can lead to inefficient code).

Patch Set 1 #

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

Total comments: 8

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -19 lines) Patch
M go/loader/pkginfo.go View 1 2 1 chunk +19 lines, -9 lines 0 comments Download
M go/ssa/builder.go View 1 2 2 chunks +12 lines, -1 line 0 comments Download
M go/types/api.go View 1 1 chunk +3 lines, -2 lines 0 comments Download
M go/types/check.go View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M go/types/expr.go View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M go/types/typexpr.go View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13
pcc
For review only/not for submission until we unfreeze.
10 years ago (2014-04-25 05:19:17 UTC) #1
adonovan
gri will no doubt have opinions about the proposed types API. Obviously this change must ...
10 years ago (2014-04-25 15:09:01 UTC) #2
gri
https://codereview.appspot.com/92780044/diff/20001/go/loader/pkginfo.go File go/loader/pkginfo.go (right): https://codereview.appspot.com/92780044/diff/20001/go/loader/pkginfo.go#newcode40 go/loader/pkginfo.go:40: func (info *PackageInfo) TypeAndAddyOf(e ast.Expr) (types.Type, bool) { On ...
9 years, 12 months ago (2014-04-30 19:53:19 UTC) #3
adonovan
Let's expose the mode, but not the whole operand, since it's redundant to store the ...
9 years, 12 months ago (2014-04-30 21:52:40 UTC) #4
gri
I like to make this change since I want to fully understand the consequences. Perhaps ...
9 years, 12 months ago (2014-04-30 21:59:50 UTC) #5
pcc
Thanks Robert. On Wed, Apr 30, 2014 at 2:59 PM, Robert Griesemer <gri@golang.org> wrote: > ...
9 years, 12 months ago (2014-04-30 22:06:23 UTC) #6
gri
Hopefully https://codereview.appspot.com/110880043 will make this one unnecessary. Please comment on 110880043 and if you're happy ...
9 years, 9 months ago (2014-07-10 18:16:22 UTC) #7
pcc
On 2014/07/10 18:16:22, gri wrote: > Hopefully https://codereview.appspot.com/110880043 will make this one > unnecessary. > ...
9 years, 9 months ago (2014-07-10 19:22:13 UTC) #8
gri
I think Alan already has a CL pending with the respective ssa changes. - gri ...
9 years, 9 months ago (2014-07-10 19:33:03 UTC) #9
pcc
This one? https://codereview.appspot.com/107650043/ Unless I am misreading it, it looks like it does not implement ...
9 years, 9 months ago (2014-07-10 19:48:09 UTC) #10
gri
Ok. Feel free to take a stab at it. Alan is in London this and ...
9 years, 9 months ago (2014-07-10 19:56:59 UTC) #11
adonovan
Hi Peter, you're right that my CL does not add the optimization. Let's do that ...
9 years, 9 months ago (2014-07-10 23:29:19 UTC) #12
pcc
9 years, 9 months ago (2014-07-11 18:35:11 UTC) #13
Closing as obsoleted by 109710043.
Sign in to reply to this message.

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