fix bug in parallel moves code

This commit is contained in:
Quentin Carbonneaux 2015-08-15 17:25:41 -04:00
parent 670604e91f
commit 4699fb7663

View file

@ -232,7 +232,7 @@ dopm(Blk *b, Ins *i, RMap *m)
pmadd(rt, i->to);
if (i==b->ins
|| (i-1)->op!=OCopy
|| isreg((i-1)->to))
|| !isreg((i-1)->to))
break;
}
else if (isreg(i->arg[0]))
@ -255,7 +255,7 @@ dopm(Blk *b, Ins *i, RMap *m)
BSET(m->b, r);
if (i==b->ins
|| (i-1)->op!=OCopy
|| isreg((i-1)->arg[0]))
|| !isreg((i-1)->arg[0]))
break;
}
else