Commit 229528cc authored by Michael Beck's avatar Michael Beck
Browse files

used new assure_*() functions

[r7691]
parent c4afe568
......@@ -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");
......
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment