From a07c6e10f532641bed98c4f2efa075688d7b9f37 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Thu, 8 Oct 2015 23:02:19 -0400 Subject: fix minor bug in rega The detection of empty permutations was incorrect since the changes made to the vector routines. --- lisc/rega.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisc/rega.c b/lisc/rega.c index e1dbac0..dc9473c 100644 --- 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']) { -- cgit 1.4.1