From 229528cc3e74e956082afb64791e46ec5ed49f20 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 3 May 2006 16:12:14 +0000 Subject: [PATCH] used new assure_*() functions [r7691] --- ir/ana/irconsconfirm.c | 6 ++---- ir/opt/strength_red.c | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ir/ana/irconsconfirm.c b/ir/ana/irconsconfirm.c index 383084949..ff21aaaa5 100644 --- a/ir/ana/irconsconfirm.c +++ b/ir/ana/irconsconfirm.c @@ -240,10 +240,8 @@ void construct_confirms(ir_graph *irg) env_t env; int edges_active = edges_activated(irg); - if (get_irg_dom_state(irg) != dom_consistent) { - /* we need dominance info */ - compute_doms(irg); - } + /* we need dominance info */ + assure_doms(irg); assert(get_irg_pinned(irg) == op_pin_state_pinned && "Nodes must be placed to insert Confirms"); diff --git a/ir/opt/strength_red.c b/ir/opt/strength_red.c index a2155cfcb..73e896aff 100644 --- a/ir/opt/strength_red.c +++ b/ir/opt/strength_red.c @@ -664,9 +664,9 @@ void reduce_strength(ir_graph *irg) { /* Call algorithm that computes the backedges */ construct_cf_backedges(irg); /* Call algorithm that computes the dominator trees. */ - compute_doms(irg); + assure_doms(irg); /* Call algorithm that computes the out edges */ - compute_irg_outs(irg); + assure_irg_outs(irg); /* -- Search expressions that can be optimized -- */ irg_walk_graph(irg, NULL, reduce_itervar, NULL); -- 2.20.1