current_ir_graph = irg;
/* Update graph state */
- assert(get_irg_phase_state(irg) != phase_building);
+ assert(!irg_is_constrained(irg, IR_GRAPH_CONSTRAINT_CONSTRUCTION));
/* Count the number of blocks in the graph. */
n_blocks = 0;
void free_dom(ir_graph *irg)
{
/* Update graph state */
- assert(get_irg_phase_state(irg) != phase_building);
clear_irg_properties(irg, IR_GRAPH_PROPERTY_CONSISTENT_DOMINANCE);
/* With the implementation right now there is nothing to free */
current_ir_graph = irg;
/* Update graph state */
- assert(get_irg_phase_state(irg) != phase_building);
+ assert(!irg_is_constrained(irg, IR_GRAPH_CONSTRAINT_CONSTRUCTION));
/* Count the number of blocks in the graph. */
n_blocks = 0;
void free_postdom(ir_graph *irg)
{
/* Update graph state */
- assert(get_irg_phase_state(irg) != phase_building);
clear_irg_properties(irg, IR_GRAPH_PROPERTY_CONSISTENT_POSTDOMINANCE);
-
- /* With the implementation right now there is nothing to free,
- but better call it anyways... */
}