Commit ca63c180 authored by Michael Beck's avatar Michael Beck
Browse files

assure_irg_outs() added

[r7687]
parent 087a74fd
......@@ -417,7 +417,6 @@ void compute_irg_outs(ir_graph *irg) {
if (current_ir_graph->outs_state != outs_none)
free_irg_outs(current_ir_graph);
current_ir_graph->outs_state = outs_consistent;
/* This first iteration counts the overall number of out edges and the
number of out edges for each node. */
......@@ -441,9 +440,15 @@ void compute_irg_outs(ir_graph *irg) {
the out block walker. */
fix_start_proj(irg);
current_ir_graph->outs_state = outs_consistent;
current_ir_graph = rem;
}
void assure_irg_outs(ir_graph *irg) {
if (get_irg_outs_state(irg) != outs_consistent)
compute_irg_outs(irg);
}
void compute_irp_outs(void) {
int i, n_irgs = get_irp_n_irgs();
for (i = 0; i < n_irgs; ++i)
......
......@@ -83,6 +83,9 @@ void irg_out_block_walk(ir_node *node,
"op_pin_state_floats". Optimizes Tuple nodes. */
void compute_irg_outs(ir_graph *irg);
void compute_irp_outs(void);
void assure_irg_outs(ir_graph *irg);
/** Computes the out edges in interprocedural view */
void compute_ip_outs(void);
/** Frees the out datastructures. Sets the flag in irg to "outs_none". */
......
Markdown is supported
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