From bb08c29edb2af64063b173a3c08681fee7c60b88 Mon Sep 17 00:00:00 2001 From: David Given Date: Wed, 14 Dec 2016 23:14:13 +0100 Subject: [PATCH] Ensure we cover all vregs, even pathalogical cases (e.g. phis which are never used). --- mach/proto/mcg/pass_vregusage.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mach/proto/mcg/pass_vregusage.c b/mach/proto/mcg/pass_vregusage.c index b1fd6ee31..339ea78ca 100644 --- a/mach/proto/mcg/pass_vregusage.c +++ b/mach/proto/mcg/pass_vregusage.c @@ -48,6 +48,7 @@ void pass_determine_vreg_usage(void) struct phi* phi = bb->phis.item[j].right; struct vreg* src = phi->ir->result; array_appendu(&src->usedphis, bb); + array_appendu(&vregs, src); array_appendu(&vregs, dest); } } @@ -60,5 +61,3 @@ void pass_determine_vreg_usage(void) } /* vim: set sw=4 ts=4 expandtab : */ - - -- 2.34.1