mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-16 17:01:53 +00:00
[qfcc] Revert "Kill dag leaf nodes on assignment."
This reverts commit 2fcda44ab0
.
Killing the node is not the correcgt answer as it blocks many
optimization opportunities. The correct answer is adding edges to
describe the temporal dependencies. Of course, this breaks the swap.r
test.
This commit is contained in:
parent
5291cfb03d
commit
76b3bedb72
1 changed files with 0 additions and 5 deletions
|
@ -640,11 +640,6 @@ dagnode_attach_label (dagnode_t *n, daglabel_t *l)
|
|||
"attempt to attach non-identifer label to dagnode "
|
||||
"identifiers");
|
||||
if (l->dagnode) {
|
||||
// if the node is a leaf, then kill its value so no attempt is made
|
||||
// to reuse it.
|
||||
if (l->dagnode->type == st_none) {
|
||||
l->dagnode->killed = n;
|
||||
}
|
||||
dagnode_t *node = l->dagnode;
|
||||
set_union (n->edges, node->parents);
|
||||
set_remove (n->edges, n->number);
|
||||
|
|
Loading…
Reference in a new issue