]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/5g, cmd/6g, cmd/8g: restore occurrences of R replaced by nil in comments.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Wed, 14 Aug 2013 19:24:48 +0000 (21:24 +0200)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Wed, 14 Aug 2013 19:24:48 +0000 (21:24 +0200)
R=golang-dev, bradfitz, rsc
CC=golang-dev
https://golang.org/cl/12842043

src/cmd/5g/peep.c
src/cmd/6g/peep.c
src/cmd/8g/peep.c

index a6c9a6ada9d2dc62beda5b05145e06c2d041df4f..fc6899d9ed75ef1d6ae246cbee0c9096de2caed3 100644 (file)
@@ -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.
  */
index d1041d58e543eb698a5d07eb59fd0ddf12c54635..c0fe97ece1c7e4a31f21ed18b99a36e4bebfb797 100644 (file)
@@ -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) {
index 5a0b1d3ab1abd61b7f993f9aaa64b6326688f4d0..358b0977ae1eef4d4d148f0dbfe067abb3ac855b 100644 (file)
@@ -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) {