diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/nv50/codegen/nv50_ir_graph.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_graph.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_graph.cpp index 2c64a140f51..b1287001c37 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir_graph.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir_graph.cpp @@ -43,13 +43,11 @@ Graph::~Graph() void Graph::insert(Node *node) { - if (!root) { + if (!root) root = node; - size = 1; - node->graph = this; - } else { - root->attach(node, Edge::TREE); - } + + node->graph = this; + size++; } void Graph::Edge::unlink() |