mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Use the alias code when making vars live
Not sure the live forcing flag is needed anymore (need to test).
This commit is contained in:
parent
2977c145d0
commit
db4a7a139e
1 changed files with 13 additions and 11 deletions
|
@ -535,6 +535,19 @@ dag_live_aliases(operand_t *op)
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
dag_make_var_live (set_t *live_vars, operand_t *op)
|
||||
{
|
||||
flowvar_t *var = 0;
|
||||
|
||||
if (op) {
|
||||
dag_live_aliases (op);
|
||||
var = flow_get_var (op);
|
||||
}
|
||||
if (var)
|
||||
set_add (live_vars, var->number);
|
||||
}
|
||||
|
||||
static void
|
||||
dagnode_attach_label (dagnode_t *n, daglabel_t *l)
|
||||
{
|
||||
|
@ -650,17 +663,6 @@ dag_sort_nodes (dag_t *dag)
|
|||
dag->num_topo = topo;
|
||||
}
|
||||
|
||||
static void
|
||||
dag_make_var_live (set_t *live_vars, operand_t *op)
|
||||
{
|
||||
flowvar_t *var = 0;
|
||||
|
||||
if (op)
|
||||
var = flow_get_var (op);
|
||||
if (var)
|
||||
set_add (live_vars, var->number);
|
||||
}
|
||||
|
||||
static void
|
||||
dag_kill_nodes (dag_t *dag, dagnode_t *n)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue