mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09: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 {
|
struct Tmp {
|
||||||
char name[NString];
|
char name[NString];
|
||||||
|
Ins *ins;
|
||||||
Use *use;
|
Use *use;
|
||||||
uint ndef, nuse;
|
uint ndef, nuse;
|
||||||
uint bid; /* id of a defining block */
|
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? */
|
/* todo, is this the correct file? */
|
||||||
tmp = fn->tmp;
|
tmp = fn->tmp;
|
||||||
for (t=Tmp0; t<fn->ntmp; t++) {
|
for (t=Tmp0; t<fn->ntmp; t++) {
|
||||||
|
tmp[t].ins = 0;
|
||||||
tmp[t].bid = -1u;
|
tmp[t].bid = -1u;
|
||||||
tmp[t].ndef = 0;
|
tmp[t].ndef = 0;
|
||||||
tmp[t].nuse = 0;
|
tmp[t].nuse = 0;
|
||||||
@ -88,6 +89,7 @@ filluse(Fn *fn)
|
|||||||
w = WFull;
|
w = WFull;
|
||||||
t = i->to.val;
|
t = i->to.val;
|
||||||
tmp[t].width = w;
|
tmp[t].width = w;
|
||||||
|
tmp[t].ins = i;
|
||||||
tmp[t].bid = b->id;
|
tmp[t].bid = b->id;
|
||||||
tmp[t].ndef++;
|
tmp[t].ndef++;
|
||||||
tmp[t].cls = i->cls;
|
tmp[t].cls = i->cls;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user