1
0
mirror of https://github.com/golang/go synced 2024-11-22 00:44:39 -07:00

peep: more optimization

R=r
CC=golang-dev
https://golang.org/cl/4149044
This commit is contained in:
Ken Thompson 2011-02-08 16:55:59 -08:00
parent 0122a667b6
commit dc331e6565

View File

@ -99,7 +99,7 @@ loop1:
case AMOVW:
case AMOVF:
case AMOVD:
if(p->scond)
if(p->scond != C_SCOND_NONE)
break;
if(!regtyp(&p->to))
break;
@ -367,7 +367,7 @@ subprop(Reg *r0)
case ADIVF:
if(p->to.type == v1->type)
if(p->to.reg == v1->reg)
if(p->scond == 0) {
if(p->scond == C_SCOND_NONE) {
if(p->reg == NREG)
p->reg = p->to.reg;
goto gotit;
@ -379,7 +379,7 @@ subprop(Reg *r0)
case AMOVW:
if(p->to.type == v1->type)
if(p->to.reg == v1->reg)
if(p->scond == 0)
if(p->scond == C_SCOND_NONE)
goto gotit;
break;