commit fb838ce09547bc85da10dd447851536867e6f9a9
parent 77cfb14f58aeaca5c4c1f10d6d679e05a3d128af
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Thu, 4 Feb 2016 12:18:21 -0500
fix spill bug on return nodes
When a node has no successor, its inregs out was
initialized with garbage.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisc/spill.c b/lisc/spill.c
@@ -378,9 +378,9 @@ spill(Fn *fn)
if (s2 && s2->id <= n)
if (!hd || s2->id >= hd->id)
hd = s2;
+ BZERO(v);
if (hd) {
/* back-edge */
- BZERO(v);
for (k=0; k<2; k++) {
n = k == 0 ? NIReg : NFReg;
for (z=0; z<BITS; z++) {