Commit ae9fd2c2 authored by Andreas Zwinkau's avatar Andreas Zwinkau
Browse files

Remove obsolete outs invalidation

parent 9bfc8d4d
......@@ -593,9 +593,6 @@ void construct_confirms(ir_graph *irg)
}
if (env.num_confirms | env.num_consts | env.num_eq) {
/* we have add nodes or changed DF edges */
set_irg_outs_inconsistent(irg);
/* the new nodes are not in the loop info */
set_irg_loopinfo_inconsistent(irg);
}
......
......@@ -268,7 +268,6 @@ int be_remove_empty_blocks(ir_graph *irg)
/* invalidate analysis info */
set_irg_doms_inconsistent(irg);
set_irg_extblk_inconsistent(irg);
set_irg_outs_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
}
return blocks_removed;
......
......@@ -78,7 +78,6 @@ static inline void do_local_optimize(ir_node *n)
if (get_opt_global_cse())
set_irg_pinned(irg, op_pin_state_floats);
set_irg_outs_inconsistent(irg);
set_irg_doms_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
......@@ -296,7 +295,6 @@ int optimize_graph_df(ir_graph *irg)
set_irg_state(irg, IR_GRAPH_STATE_BAD_BLOCK);
/* invalidate info */
set_irg_outs_inconsistent(irg);
set_irg_doms_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
......@@ -316,7 +314,6 @@ int optimize_graph_df(ir_graph *irg)
opt_walker(n, waitq);
}
/* kill newly generated unreachable code */
set_irg_outs_inconsistent(irg);
compute_doms(irg);
irg_block_walk_graph(irg, NULL, kill_dead_blocks, waitq);
} while (! pdeq_empty(waitq));
......@@ -335,7 +332,6 @@ int optimize_graph_df(ir_graph *irg)
if (remove_Bads(irg)) {
edges_deactivate(irg);
set_irg_outs_inconsistent(irg);
}
clear_irg_state(irg, IR_GRAPH_STATE_BAD_BLOCK);
......
......@@ -6410,8 +6410,6 @@ ir_node *optimize_in_place(ir_node *n)
if (get_opt_global_cse())
set_irg_pinned(irg, op_pin_state_floats);
if (get_irg_outs_state(irg) == outs_consistent)
set_irg_outs_inconsistent(irg);
/* FIXME: Maybe we could also test whether optimizing the node can
change the control graph. */
......
......@@ -764,7 +764,6 @@ static void transform_irg(const lower_params_t *lp, ir_graph *irg)
if (env.changed) {
/* invalidate the analysis info */
set_irg_outs_inconsistent(irg);
set_irg_loopinfo_state(irg, loopinfo_inconsistent);
}
current_ir_graph = rem;
......
......@@ -181,7 +181,6 @@ void lower_CopyB(ir_graph *irg, unsigned max_size, unsigned native_mode_bytes)
}
if (changed) {
set_irg_outs_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
}
......
......@@ -2319,9 +2319,6 @@ static void lower_irg(lower_env_t *env, ir_graph *irg)
ir_free_resources(irg, IR_RESOURCE_IRN_VISITED);
/* outs are invalid, we changed the graph */
set_irg_outs_inconsistent(irg);
if (env->flags & CF_CHANGED) {
/* control flow changed, dominance info is invalid */
set_irg_doms_inconsistent(irg);
......
......@@ -523,8 +523,6 @@ void lower_highlevel_graph(ir_graph *irg, int lower_bitfields)
/* Finally: lower SymConst-Size and Sel nodes, Casts, unaligned Load/Stores. */
irg_walk_graph(irg, NULL, lower_irnode, NULL);
set_irg_outs_inconsistent(irg);
}
typedef struct pass_t {
......
......@@ -139,7 +139,6 @@ size_t lower_intrinsics(i_record *list, size_t length, int part_block_used)
if (wenv.nr_of_intrinsics > 0) {
/* Changes detected: we might have added/removed nodes. */
set_irg_outs_inconsistent(irg);
set_irg_callee_info_state(irg, irg_callee_info_inconsistent);
/* Exception control flow might have changed / new block might have added. */
......
......@@ -457,7 +457,6 @@ void ir_lower_mode_b(ir_graph *irg, const lower_mode_b_config_t *nconfig)
ir_free_resources(irg, IR_RESOURCE_IRN_LINK);
if (changed) {
set_irg_outs_inconsistent(irg);
/* lowering might create new blocks, so be sure to handle this */
set_irg_extblk_inconsistent(irg);
set_irg_doms_inconsistent(irg);
......
......@@ -137,7 +137,6 @@ void lower_mux(ir_graph *irg, lower_mux_callback *cb_func)
/* Cleanup, verify the graph. */
ir_free_resources(irg, resources);
set_irg_outs_inconsistent(irg);
set_irg_doms_inconsistent(irg);
set_irg_extblk_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
......
......@@ -421,7 +421,6 @@ void lower_switch(ir_graph *irg, unsigned spare_size, int allow_out_of_bounds)
if (env.changed) {
/* control flow changed */
set_irg_outs_inconsistent(irg);
set_irg_doms_inconsistent(irg);
set_irg_extblk_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
......
......@@ -738,7 +738,6 @@ void opt_bool(ir_graph *const irg)
irg_block_walk_graph(irg, NULL, find_cf_and_or_walker, &env);
if (env.changed) {
set_irg_outs_inconsistent(irg);
set_irg_doms_inconsistent(irg);
set_irg_extblk_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
......
......@@ -602,7 +602,6 @@ restart:
if (env.changed) {
/* Handle graph state if was changed. */
set_irg_outs_inconsistent(irg);
set_irg_doms_inconsistent(irg);
set_irg_extblk_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
......@@ -634,10 +633,6 @@ restart:
n = get_End_n_keepalives(end);
if (n > 0) {
NEW_ARR_A(ir_node *, in, n);
if (env.changed) {
/* Handle graph state if was changed. */
set_irg_outs_inconsistent(irg);
}
assure_irg_outs(irg);
for (i = j = 0; i < n; ++i) {
......@@ -668,7 +663,6 @@ restart:
if (env.changed) {
/* Handle graph state if was changed. */
set_irg_outs_inconsistent(irg);
set_irg_doms_inconsistent(irg);
set_irg_extblk_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
......
......@@ -429,7 +429,6 @@ void place_code(ir_graph *irg)
unnecessary executions of the node. */
place_late(irg, worklist);
set_irg_outs_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
del_waitq(worklist);
}
......
......@@ -3595,7 +3595,6 @@ void combo(ir_graph *irg)
if (env.modified) {
/* control flow might changed */
set_irg_outs_inconsistent(irg);
set_irg_extblk_inconsistent(irg);
set_irg_doms_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
......
......@@ -315,9 +315,6 @@ int conv_opt(ir_graph *irg)
invalidate |= changed;
} while (changed);
if (invalidate) {
set_irg_outs_inconsistent(irg);
}
return invalidate;
}
......
......@@ -105,7 +105,6 @@ void remove_critical_cf_edges_ex(ir_graph *irg, int ignore_exception_edges)
irg_block_walk_graph(irg, NULL, walk_critical_cf_edges, &env);
if (env.changed) {
/* control flow changed */
set_irg_outs_inconsistent(irg);
set_irg_extblk_inconsistent(irg);
set_irg_doms_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
......
......@@ -460,13 +460,9 @@ static void transform_allocs(ir_graph *irg, walk_env_t *env)
}
/* if allocs were removed somehow */
if (env->nr_removed | env->nr_deads) {
set_irg_outs_inconsistent(irg);
if (env->nr_deads) {
/* exception control flow might have been changed */
set_irg_doms_inconsistent(irg);
}
if (env->nr_removed && env->nr_deads) {
/* exception control flow might have been changed */
set_irg_doms_inconsistent(irg);
}
}
......
......@@ -860,7 +860,6 @@ void fixpoint_vrp(ir_graph* const irg)
if (env.modified) {
/* control flow might changed */
set_irg_outs_inconsistent(irg);
set_irg_extblk_inconsistent(irg);
set_irg_doms_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
......
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