diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-10-08 23:02:19 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-10-08 23:02:19 -0400 |
commit | a07c6e10f532641bed98c4f2efa075688d7b9f37 (patch) | |
tree | d9730fb6e8dfe3daf497e49957c346884de6bf25 /lisc/rega.c | |
parent | 2642ff022c377c3e8594a99841cc08c1f6285944 (diff) | |
download | roux-a07c6e10f532641bed98c4f2efa075688d7b9f37.tar.gz |
fix minor bug in rega
The detection of empty permutations was incorrect since the changes made to the vector routines.
Diffstat (limited to 'lisc/rega.c')
-rw-r--r-- | lisc/rega.c | 6 |
1 files 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']) { |