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:
Bill Currie 2019-06-16 19:17:45 +09:00
parent 2977c145d0
commit db4a7a139e

View file

@ -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)
{