From 03fdbe9b86de3f8169be12c6d36fad1cc3ce7636 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 12 Dec 2012 12:52:01 +0900 Subject: [PATCH] Ensure the def is aliasing before adding edges. Getting two nodes doubly connected for *to = *from++; was interesting. --- tools/qfcc/source/dags.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/qfcc/source/dags.c b/tools/qfcc/source/dags.c index 9221b3914..801bc5a83 100644 --- a/tools/qfcc/source/dags.c +++ b/tools/qfcc/source/dags.c @@ -339,7 +339,8 @@ dagnode_set_edges (dagnode_t *n) operand_t *op = child->label->op; if (node != child && node != n) set_add (node->edges, n->number); - if (op->op_type == op_def) + if (op->op_type == op_def + && (op->o.def->alias || op->o.def->alias_defs)) def_visit_all (op->o.def, 1, dagnode_set_edges_visit, n); } if (n != child)