commit 4699fb7663961b3dab2591f2165be62fda47c3e8
parent 670604e91f316383634b98b9c0c82de536335fa5
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Sat, 15 Aug 2015 17:25:41 -0400
fix bug in parallel moves code
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisc/rega.c b/lisc/rega.c
@@ -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