From 926d89ce803f43e347f541dfd6621377c5a73b60 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 7 Oct 2008 13:27:03 +0000 Subject: [PATCH] - used new irg_walk_blkwise_dom_top_down() to calculate the value of each node as needed in first phase of BuildSets [r22574] --- ir/opt/gvn_pre.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ir/opt/gvn_pre.c b/ir/opt/gvn_pre.c index 5e35e2786..6f539ba8f 100644 --- a/ir/opt/gvn_pre.c +++ b/ir/opt/gvn_pre.c @@ -829,7 +829,8 @@ void do_gvn_pre(ir_graph *irg) /* * Switch on GCSE. We need it to correctly compute - * the leader of a node by hashing. + * the value of a node, which is independent from + * its block. */ save_optimization_state(&state); set_opt_global_cse(1); @@ -837,7 +838,7 @@ void do_gvn_pre(ir_graph *irg) DB((dbg, LEVEL_1, "Doing GVN-PRE for %+F\n", irg)); /* allocate block info for all blocks */ - irg_walk_blkwise_graph(irg, NULL, topo_walker, &a_env); + irg_walk_blkwise_dom_top_down(irg, NULL, topo_walker, &a_env); /* clean the exp_gen set. Doing this here saves the cleanup in the iteration. */ for (bl_info = a_env.list; bl_info != NULL; bl_info = bl_info->next) { @@ -899,6 +900,5 @@ void do_gvn_pre(ir_graph *irg) if (a_env.pairs) { set_irg_outs_inconsistent(irg); set_irg_loopinfo_inconsistent(irg); - } } /* do_gvn_pre */ -- 2.20.1