rework liveness to compute reg pressure

This commit is contained in:
Quentin Carbonneaux 2015-07-21 17:08:48 -04:00
parent 7be3711bb6
commit 0f0ee0466e
3 changed files with 49 additions and 37 deletions

View file

@ -130,7 +130,8 @@ struct Blk {
Blk **pred;
uint npred;
Bits in, out;
Bits in, out, gen;
int nlive;
int loop;
char name[NString];
int id;
@ -175,5 +176,6 @@ void filllive(Fn *);
void isel(Fn *);
/* spill.c */
int bcnt(Bits *);
void fillcost(Fn *);
void spill(Fn *);