From: David Given Date: Wed, 14 Dec 2016 22:14:13 +0000 (+0100) Subject: Ensure we cover all vregs, even pathalogical cases (e.g. phis which are never X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=bb08c29edb2af64063b173a3c08681fee7c60b88;p=ack.git Ensure we cover all vregs, even pathalogical cases (e.g. phis which are never used). --- 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 : */ - -