/*
* 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.
*/
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) {
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) {