From dc331e656501cdb3f244582ec347549b22c9288e Mon Sep 17 00:00:00 2001 From: Ken Thompson Date: Tue, 8 Feb 2011 16:55:59 -0800 Subject: [PATCH] peep: more optimization R=r CC=golang-dev https://golang.org/cl/4149044 --- src/cmd/5g/peep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cmd/5g/peep.c b/src/cmd/5g/peep.c index 3b31870981d..32d5d2bd808 100644 --- a/src/cmd/5g/peep.c +++ b/src/cmd/5g/peep.c @@ -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;