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

Remove obsolete loopinfo invalidation

parent 3cbd4131
......@@ -592,11 +592,6 @@ void construct_confirms(ir_graph *irg)
irg_block_walk_graph(irg, insert_Confirm_in_block, NULL, &env);
}
if (env.num_confirms | env.num_consts | env.num_eq) {
/* the new nodes are not in the loop info */
set_irg_loopinfo_inconsistent(irg);
}
DB((dbg, LEVEL_1, "# Confirms inserted : %u\n", env.num_confirms));
DB((dbg, LEVEL_1, "# Const replacements: %u\n", env.num_consts));
DB((dbg, LEVEL_1, "# node equalities : %u\n", env.num_eq));
......
......@@ -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_loopinfo_inconsistent(irg);
}
return blocks_removed;
}
......
......@@ -79,7 +79,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_doms_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
/* Clean the value_table in irg for the CSE. */
new_identities(irg);
......@@ -296,7 +295,6 @@ int optimize_graph_df(ir_graph *irg)
/* invalidate info */
set_irg_doms_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
ir_reserve_resources(irg, IR_RESOURCE_IRN_LINK);
......
......@@ -762,10 +762,6 @@ static void transform_irg(const lower_params_t *lp, ir_graph *irg)
pmap_destroy(env.dummy_map);
obstack_free(&env.obst, NULL);
if (env.changed) {
/* invalidate the analysis info */
set_irg_loopinfo_state(irg, loopinfo_inconsistent);
}
current_ir_graph = rem;
}
......
......@@ -168,7 +168,6 @@ void lower_CopyB(ir_graph *irg, unsigned max_size, unsigned native_mode_bytes)
{
walk_env_t env;
entry_t *entry;
bool changed = false;
obstack_init(&env.obst);
env.max_size = max_size;
......@@ -177,11 +176,6 @@ void lower_CopyB(ir_graph *irg, unsigned max_size, unsigned native_mode_bytes)
list_for_each_entry(entry_t, entry, &env.list, list) {
lower_copyb_nodes(entry->copyb, native_mode_bytes);
changed = true;
}
if (changed) {
set_irg_loopinfo_inconsistent(irg);
}
obstack_free(&env.obst, NULL);
......
......@@ -2323,7 +2323,6 @@ static void lower_irg(lower_env_t *env, ir_graph *irg)
/* control flow changed, dominance info is invalid */
set_irg_doms_inconsistent(irg);
set_irg_extblk_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
}
}
......
......@@ -144,7 +144,6 @@ size_t lower_intrinsics(i_record *list, size_t length, int part_block_used)
/* Exception control flow might have changed / new block might have added. */
set_irg_doms_inconsistent(irg);
set_irg_extblk_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
/* Calls might be removed/added. */
set_trouts_inconsistent();
......
......@@ -460,6 +460,5 @@ void ir_lower_mode_b(ir_graph *irg, const lower_mode_b_config_t *nconfig)
/* lowering might create new blocks, so be sure to handle this */
set_irg_extblk_inconsistent(irg);
set_irg_doms_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
}
}
......@@ -139,7 +139,6 @@ void lower_mux(ir_graph *irg, lower_mux_callback *cb_func)
set_irg_doms_inconsistent(irg);
set_irg_extblk_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
}
DEL_ARR_F(env.muxes);
}
......
......@@ -423,6 +423,5 @@ void lower_switch(ir_graph *irg, unsigned spare_size, int allow_out_of_bounds)
/* control flow changed */
set_irg_doms_inconsistent(irg);
set_irg_extblk_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
}
}
......@@ -740,7 +740,6 @@ void opt_bool(ir_graph *const irg)
if (env.changed) {
set_irg_doms_inconsistent(irg);
set_irg_extblk_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
}
ir_free_resources(irg, IR_RESOURCE_BLOCK_MARK | IR_RESOURCE_PHI_LIST);
......
......@@ -604,7 +604,6 @@ restart:
/* Handle graph state if was changed. */
set_irg_doms_inconsistent(irg);
set_irg_extblk_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
set_irg_entity_usage_state(irg, ir_entity_usage_not_computed);
/* The Cond optimization might generate unreachable code, so restart if
......@@ -665,7 +664,6 @@ restart:
/* Handle graph state if was changed. */
set_irg_doms_inconsistent(irg);
set_irg_extblk_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
set_irg_entity_usage_state(irg, ir_entity_usage_not_computed);
}
}
......
......@@ -429,7 +429,6 @@ void place_code(ir_graph *irg)
unnecessary executions of the node. */
place_late(irg, worklist);
set_irg_loopinfo_inconsistent(irg);
del_waitq(worklist);
}
......
......@@ -3597,7 +3597,6 @@ void combo(ir_graph *irg)
/* control flow might changed */
set_irg_extblk_inconsistent(irg);
set_irg_doms_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
set_irg_entity_usage_state(irg, ir_entity_usage_not_computed);
}
......
......@@ -107,7 +107,6 @@ void remove_critical_cf_edges_ex(ir_graph *irg, int ignore_exception_edges)
/* control flow changed */
set_irg_extblk_inconsistent(irg);
set_irg_doms_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
}
}
......
......@@ -862,7 +862,6 @@ void fixpoint_vrp(ir_graph* const irg)
/* control flow might changed */
set_irg_extblk_inconsistent(irg);
set_irg_doms_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
set_irg_entity_usage_state(irg, ir_entity_usage_not_computed);
}
......
......@@ -892,10 +892,6 @@ void do_gvn_pre(ir_graph *irg)
/* pin the graph again: This is needed due to the use of set_opt_global_cse(1) */
set_irg_pinned(irg, op_pin_state_pinned);
restore_optimization_state(&state);
if (a_env.pairs) {
set_irg_loopinfo_inconsistent(irg);
}
} /* do_gvn_pre */
/* Creates an ir_graph pass for do_gvn_pre. */
......
......@@ -495,7 +495,6 @@ void opt_if_conv(ir_graph *irg)
/* graph has changed, invalidate analysis info */
set_irg_extblk_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
set_irg_doms_inconsistent(irg);
}
......
......@@ -768,7 +768,6 @@ void opt_jumpthreading(ir_graph* irg)
/* control flow changed, some blocks may become dead */
set_irg_doms_inconsistent(irg);
set_irg_extblk_inconsistent(irg);
set_irg_loopinfo_inconsistent(irg);
set_irg_entity_usage_state(irg, ir_entity_usage_not_computed);
}
}
......
......@@ -1394,8 +1394,6 @@ static void loop_inversion(void)
/* Duplicated blocks changed doms */
set_irg_doms_inconsistent(current_ir_graph);
/* Loop content changed */
set_irg_loopinfo_inconsistent(current_ir_graph);
count_stats(stats.inverted);
}
......@@ -2630,7 +2628,6 @@ static void unroll_loop(void)
count_stats(stats.invariant_unroll);
set_irg_doms_inconsistent(current_ir_graph);
set_irg_loopinfo_inconsistent(current_ir_graph);
DEL_ARR_F(loop_entries);
}
......
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