fix bug in parallel moves code
This commit is contained in:
parent
670604e91f
commit
4699fb7663
1 changed files with 2 additions and 2 deletions
|
@ -232,7 +232,7 @@ dopm(Blk *b, Ins *i, RMap *m)
|
||||||
pmadd(rt, i->to);
|
pmadd(rt, i->to);
|
||||||
if (i==b->ins
|
if (i==b->ins
|
||||||
|| (i-1)->op!=OCopy
|
|| (i-1)->op!=OCopy
|
||||||
|| isreg((i-1)->to))
|
|| !isreg((i-1)->to))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (isreg(i->arg[0]))
|
else if (isreg(i->arg[0]))
|
||||||
|
@ -255,7 +255,7 @@ dopm(Blk *b, Ins *i, RMap *m)
|
||||||
BSET(m->b, r);
|
BSET(m->b, r);
|
||||||
if (i==b->ins
|
if (i==b->ins
|
||||||
|| (i-1)->op!=OCopy
|
|| (i-1)->op!=OCopy
|
||||||
|| isreg((i-1)->arg[0]))
|
|| !isreg((i-1)->arg[0]))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue