From 51ae0985ed587b82ae03ab2f752b5a9917a309b2 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Mon, 29 Sep 2008 22:29:16 +0000 Subject: [PATCH] - BugFix: removed missing debugging artefact, causing partitions with constant type place on the workqueue again (fix ack/test2.c) - Add debug output when a partition is placed on the workqueue [r22349] --- ir/opt/combo.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ir/opt/combo.c b/ir/opt/combo.c index 79fa040d3..057dacdb9 100644 --- a/ir/opt/combo.c +++ b/ir/opt/combo.c @@ -500,6 +500,7 @@ static INLINE tarval *get_node_tarval(const ir_node *irn) { */ static INLINE void add_to_worklist(partition_t *X, environment_t *env) { assert(X->on_worklist == 0); + DB((dbg, LEVEL_2, "Adding part%d to worklist\n", X->nr)); X->wl_next = env->worklist; X->on_worklist = 1; env->worklist = X; @@ -2552,9 +2553,6 @@ static void propagate(environment_t *env) { if (old_type_was_T_or_C) { node_t *y, *tmp; - if (Y->on_worklist == 0) - add_to_worklist(Y, env); - /* check if some nodes will make the leader -> follower transition */ list_for_each_entry_safe(node_t, y, tmp, &Y->Leader, node_list) { if (y->type.tv != tarval_top && ! is_con(y->type)) { @@ -3000,7 +2998,6 @@ void combo(ir_graph *irg) { assure_irg_outs(irg); assure_cf_loop(irg); - /* we have our own value_of function */ set_value_of_func(get_node_tarval); -- 2.20.1