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