use edge counter instead of recalculation for getting number of out-edges
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Wed, 14 Feb 2007 10:15:28 +0000 (10:15 +0000)
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Wed, 14 Feb 2007 10:15:28 +0000 (10:15 +0000)
[r8644]

ir/ir/iredges_t.h

index 792bdf8..2cf8589 100644 (file)
@@ -94,7 +94,7 @@ static INLINE const ir_edge_t *_get_irn_out_edge_next(const ir_node *irn, const
 static INLINE int _get_irn_n_edges_kind(const ir_node *irn, int kind)
 {
        /* 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, kind);
        list_for_each(pos, head)