Commit dc331e65 authored by Ken Thompson's avatar Ken Thompson

peep: more optimization

R=r
CC=golang-dev
https://golang.org/cl/4149044
parent 0122a667
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment