mirror of
git://c9x.me/qbe.git
synced 2026-04-05 09:59:47 +00:00
fill definition site in filluse()
This commit is contained in:
parent
8ecae92299
commit
0d50ebaed9
1
all.h
1
all.h
@ -289,6 +289,7 @@ struct Alias {
|
||||
|
||||
struct Tmp {
|
||||
char name[NString];
|
||||
Ins *ins;
|
||||
Use *use;
|
||||
uint ndef, nuse;
|
||||
uint bid; /* id of a defining block */
|
||||
|
||||
2
ssa.c
2
ssa.c
@ -47,6 +47,7 @@ filluse(Fn *fn)
|
||||
/* todo, is this the correct file? */
|
||||
tmp = fn->tmp;
|
||||
for (t=Tmp0; t<fn->ntmp; 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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user