commit a07c6e10f532641bed98c4f2efa075688d7b9f37
parent 2642ff022c377c3e8594a99841cc08c1f6285944
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Thu, 8 Oct 2015 23:02:19 -0400
fix minor bug in rega
The detection of empty permutations was incorrect
since the changes made to the vector routines.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lisc/rega.c b/lisc/rega.c
@@ -419,7 +419,7 @@ rega(Fn *fn)
pmadd(src, dst, tmp[t].wide);
}
pmgen();
- if (!n)
+ if (curi == insb)
continue;
b1 = balloc();
b1->loop = (b->loop+s->loop) / 2;
@@ -439,8 +439,8 @@ rega(Fn *fn)
}
}
for (b=fn->start; b; b=b->link)
- while ((p=b->phi))
- b->phi = p->link;
+ while (b->phi)
+ b->phi = b->phi->link;
fn->reg = regu;
if (debug['R']) {