- when control flow is changed, invalidate the entity usage state
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 20 Jan 2009 03:14:54 +0000 (03:14 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 20 Jan 2009 03:14:54 +0000 (03:14 +0000)
[r25284]

ir/opt/cfopt.c
ir/opt/combo.c
ir/opt/condeval.c

index 7b452b2..972703d 100644 (file)
@@ -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);
        }
 
 
index e0decd5..3a2bd9b 100644 (file)
@@ -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);
index 44769b7..f557291 100644 (file)
@@ -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. */