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

Issue 110210045: go.tools/go/ssa: introduce a sanity check for dead referrers (Closed)

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

Description

go.tools/go/ssa: introduce a sanity check for dead referrers This extends the sanity checker to identify and report referrers which do not appear in the function's instruction lists, and fixes two bugs in the lifting algorithm which were caught by the sanity check.

Patch Set 1 #

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

Total comments: 15

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

Total comments: 4

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -2 lines) Patch
M go/ssa/lift.go View 1 2 3 3 chunks +26 lines, -1 line 0 comments Download
M go/ssa/sanity.go View 1 2 5 chunks +26 lines, -1 line 0 comments Download

Messages

Total messages: 7
pcc
10 years, 2 months ago (2014-06-26 22:18:25 UTC) #1
adonovan
Thanks for fixing this. https://codereview.appspot.com/110210045/diff/20001/go/ssa/lift.go File go/ssa/lift.go (right): https://codereview.appspot.com/110210045/diff/20001/go/ssa/lift.go#newcode213 go/ssa/lift.go:213: if prefs := newval.Referrers(); prefs ...
10 years, 2 months ago (2014-07-07 14:31:53 UTC) #2
pcc
https://codereview.appspot.com/110210045/diff/20001/go/ssa/lift.go File go/ssa/lift.go (right): https://codereview.appspot.com/110210045/diff/20001/go/ssa/lift.go#newcode213 go/ssa/lift.go:213: if prefs := newval.Referrers(); prefs != nil { On ...
10 years, 2 months ago (2014-07-08 04:13:14 UTC) #3
adonovan
LGTM Thanks again. https://codereview.appspot.com/110210045/diff/20001/go/ssa/sanity.go File go/ssa/sanity.go (right): https://codereview.appspot.com/110210045/diff/20001/go/ssa/sanity.go#newcode441 go/ssa/sanity.go:441: s.instrs[instr] = struct{}{} On 2014/07/08 04:13:14, ...
10 years, 2 months ago (2014-07-08 07:49:02 UTC) #4
pcc
https://codereview.appspot.com/110210045/diff/40001/go/ssa/lift.go File go/ssa/lift.go (right): https://codereview.appspot.com/110210045/diff/40001/go/ssa/lift.go#newcode120 go/ssa/lift.go:120: for tail := i; tail != len(refs); tail++ { ...
10 years, 2 months ago (2014-07-10 01:51:05 UTC) #5
adonovan
LGTM Thanks again. Submitting... On 9 July 2014 21:51, <pcc@google.com> wrote: > > https://codereview.appspot.com/110210045/diff/40001/go/ssa/lift.go > ...
10 years, 2 months ago (2014-07-10 10:27:07 UTC) #6
adonovan
10 years, 2 months ago (2014-07-10 10:27:28 UTC) #7
*** Submitted as
https://code.google.com/p/go/source/detail?r=d906669ee755&repo=tools ***

go.tools/go/ssa: introduce a sanity check for dead referrers

This extends the sanity checker to identify and report referrers
which do not appear in the function's instruction lists, and fixes two
bugs in the lifting algorithm which were caught by the sanity check.

LGTM=adonovan
R=adonovan
CC=axwalk, golang-codereviews
https://codereview.appspot.com/110210045

Committer: Alan Donovan <adonovan@google.com>
Sign in to reply to this message.

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