From fb838ce09547bc85da10dd447851536867e6f9a9 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Thu, 4 Feb 2016 12:18:21 -0500 Subject: fix spill bug on return nodes When a node has no successor, its inregs out was initialized with garbage. --- lisc/spill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisc/spill.c b/lisc/spill.c index 6b6939f..aaec562 100644 --- 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