X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Firdom.c;h=c25953667274b950015cf263ebcaca17639a744b;hb=00d3df180d69e4e3fd0b05de4d066667ca8c6e8e;hp=4dcfac74d38f38cda0628b69a2242a51cb8b8701;hpb=fab5da4b7215a533d35fa244135dae84652e725b;p=libfirm diff --git a/ir/ana/irdom.c b/ir/ana/irdom.c index 4dcfac74d..c25953667 100644 --- a/ir/ana/irdom.c +++ b/ir/ana/irdom.c @@ -567,7 +567,7 @@ void compute_doms(ir_graph *irg) 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; @@ -696,7 +696,6 @@ void assure_doms(ir_graph *irg) 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 */ @@ -714,7 +713,7 @@ void compute_postdoms(ir_graph *irg) 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; @@ -810,9 +809,5 @@ void assure_postdoms(ir_graph *irg) 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... */ }