mirror of
https://github.com/golang/go
synced 2024-11-21 23:34:42 -07:00
peep: fix optimization bug
R=r CC=golang-dev https://golang.org/cl/4105058
This commit is contained in:
parent
2799e0ecb9
commit
e26b741523
@ -366,7 +366,8 @@ subprop(Reg *r0)
|
||||
case ADIVD:
|
||||
case ADIVF:
|
||||
if(p->to.type == v1->type)
|
||||
if(p->to.reg == v1->reg) {
|
||||
if(p->to.reg == v1->reg)
|
||||
if(p->scond == 0) {
|
||||
if(p->reg == NREG)
|
||||
p->reg = p->to.reg;
|
||||
goto gotit;
|
||||
@ -378,6 +379,7 @@ subprop(Reg *r0)
|
||||
case AMOVW:
|
||||
if(p->to.type == v1->type)
|
||||
if(p->to.reg == v1->reg)
|
||||
if(p->scond == 0)
|
||||
goto gotit;
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user