Commit 63f5de37 authored by Michael Beck's avatar Michael Beck
Browse files

- when control flow is changed, invalidate the entity usage state

[r25284]
parent 8c7701b9
......@@ -757,6 +757,7 @@ restart:
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);
env.changed = 0;
}
......@@ -856,6 +857,7 @@ restart:
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);
}
......
......@@ -3542,6 +3542,7 @@ void combo(ir_graph *irg) {
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);
}
ir_free_resources(irg, IR_RESOURCE_IRN_LINK | IR_RESOURCE_PHI_LIST);
......
......@@ -727,6 +727,7 @@ void opt_cond_eval(ir_graph* irg)
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);
/* Dead code might be created. Optimize it away as it is dangerous
* to call optimize_df() an dead code. */
......
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