[qfcc] Remove the node from its own edges

This gets rid of the funny little self-loop edge in dags dot files that
has bothered me for a while. It was just because the node to which an
identifier was attached happened to be the parent of the identifier's
leaf node.
This commit is contained in:
Bill Currie 2024-02-19 22:04:08 +09:00
parent b842913ca9
commit 00781160e2

View file

@ -781,6 +781,9 @@ dagnode_attach_label (dag_t *dag, dagnode_t *n, daglabel_t *l)
// which includes itself and its parents
set_add (n->edges, node->number);
set_union (n->edges, node->parents);
// nodes never need edges to themselves, but n might be one of node's
// parents
set_remove (n->edges, n->number);
dagnode_set_reachable (dag, n);
}
l->live = 0; // remove live forcing on assignment