From 0d50ebaed94f595961d88544a028bf7f523d3eac Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Sun, 20 Nov 2022 21:39:36 +0100 Subject: fill definition site in filluse() --- ssa.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ssa.c') diff --git a/ssa.c b/ssa.c index f3e9b45..d2ac227 100644 --- a/ssa.c +++ b/ssa.c @@ -47,6 +47,7 @@ filluse(Fn *fn) /* todo, is this the correct file? */ tmp = fn->tmp; for (t=Tmp0; tntmp; t++) { + tmp[t].ins = 0; tmp[t].bid = -1u; tmp[t].ndef = 0; tmp[t].nuse = 0; @@ -88,6 +89,7 @@ filluse(Fn *fn) w = WFull; t = i->to.val; tmp[t].width = w; + tmp[t].ins = i; tmp[t].bid = b->id; tmp[t].ndef++; tmp[t].cls = i->cls; -- cgit v1.2.3