summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beloopana.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2011-09-16 13:56:54 +0200
committerMatthias Braun <matze@braunis.de>2011-09-20 09:34:24 +0200
commit3bb47464dc990c9def630a208a12da1bdd035bbb (patch)
treecaba325ffb1a40fadb0fe18d38f34658d4a317a4 /ir/be/beloopana.c
parent4ebb78a2be2a05ab9ada73a50aae9269a78f1b3e (diff)
remove loopinfo stuff and exclusively use IR_GRAPH_STATE_CONSISTENT_LOOPINFO
Diffstat (limited to 'ir/be/beloopana.c')
-rw-r--r--ir/be/beloopana.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/ir/be/beloopana.c b/ir/be/beloopana.c
index 8c9b613..55664b9 100644
--- a/ir/be/beloopana.c
+++ b/ir/be/beloopana.c
@@ -166,10 +166,7 @@ be_loopana_t *be_new_loop_pressure_cls(ir_graph *irg,
DBG((dbg, LEVEL_1, " Computing register pressure for class %s:\n", cls->name));
DBG((dbg, LEVEL_1, "=====================================================\n", cls->name));
- /* construct control flow loop tree */
- if (! (get_irg_loopinfo_state(irg) & loopinfo_cf_consistent)) {
- construct_cf_backedges(irg);
- }
+ assure_loopinfo(irg);
be_compute_loop_pressure(loop_ana, get_irg_loop(irg), cls);
@@ -192,10 +189,7 @@ be_loopana_t *be_new_loop_pressure(ir_graph *irg,
loop_ana->data = new_set(cmp_loop_info, 16);
loop_ana->irg = irg;
- /* construct control flow loop tree */
- if (! (get_irg_loopinfo_state(irg) & loopinfo_cf_consistent)) {
- construct_cf_backedges(irg);
- }
+ assure_loopinfo(irg);
if (cls != NULL) {
be_compute_loop_pressure(loop_ana, irg_loop, cls);