mirror of
https://github.com/golang/go
synced 2024-11-24 23:07:56 -07:00
cmd/5g, cmd/6g, cmd/8g: restore occurrences of R replaced by nil in comments.
R=golang-dev, bradfitz, rsc CC=golang-dev https://golang.org/cl/12842043
This commit is contained in:
parent
54bdfc007f
commit
0d9db86f74
@ -493,15 +493,15 @@ constprop(Adr *c1, Adr *v1, Flow *r)
|
||||
/*
|
||||
* shortprop eliminates redundant zero/sign extensions.
|
||||
*
|
||||
* MOVBS x, nil
|
||||
* <no use nil>
|
||||
* MOVBS nil, nil'
|
||||
* MOVBS x, R
|
||||
* <no use R>
|
||||
* MOVBS R, R'
|
||||
*
|
||||
* changed to
|
||||
*
|
||||
* MOVBS x, nil
|
||||
* MOVBS x, R
|
||||
* ...
|
||||
* MOVB nil, nil' (compiled to mov)
|
||||
* MOVB R, R' (compiled to mov)
|
||||
*
|
||||
* MOVBS above can be a MOVBS, MOVBU, MOVHS or MOVHU.
|
||||
*/
|
||||
|
@ -98,9 +98,9 @@ peep(Prog *firstp)
|
||||
elimshortmov(g);
|
||||
|
||||
// constant propagation
|
||||
// find MOV $con,nil followed by
|
||||
// another MOV $con,nil without
|
||||
// setting nil in the interim
|
||||
// find MOV $con,R followed by
|
||||
// another MOV $con,R without
|
||||
// setting R in the interim
|
||||
for(r=g->start; r!=nil; r=r->link) {
|
||||
p = r->prog;
|
||||
switch(p->as) {
|
||||
|
@ -97,9 +97,9 @@ peep(Prog *firstp)
|
||||
elimshortmov(g);
|
||||
|
||||
// constant propagation
|
||||
// find MOV $con,nil followed by
|
||||
// another MOV $con,nil without
|
||||
// setting nil in the interim
|
||||
// find MOV $con,R followed by
|
||||
// another MOV $con,R without
|
||||
// setting R in the interim
|
||||
for(r=g->start; r!=nil; r=r->link) {
|
||||
p = r->prog;
|
||||
switch(p->as) {
|
||||
|
Loading…
Reference in New Issue
Block a user