get_irn_n_edges() enabled the use of the edge counter instead of recalculating the
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 5 Jul 2006 14:01:43 +0000 (14:01 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 5 Jul 2006 14:01:43 +0000 (14:01 +0000)
count every time

[r8006]

ir/ir/iredges_t.h

index 8a30b12..7c70026 100644 (file)
@@ -166,7 +166,7 @@ static INLINE int _get_edge_src_pos(const ir_edge_t *edge)
 static INLINE int _get_irn_n_edges(const ir_node *irn)
 {
 /* Perhaps out_count was buggy. This code does it more safely. */
-#if 1
+#if 0
        int res = 0;
        const struct list_head *pos, *head = _get_irn_outs_head(irn);
        list_for_each(pos, head)