beprefalloc: fix assignment of big values
[libfirm] / ir / ana / ircfscc.c
index a7e0c97..a5a53b7 100644 (file)
@@ -24,7 +24,6 @@
  *            [Trapp:99], Chapter 5.2.1.2.
  * @author    Goetz Lindenmaier
  * @date      7.2002
- * @version   $Id$
  */
 #include "config.h"
 
@@ -38,6 +37,7 @@
 #include "irgwalk.h"
 #include "irprog_t.h"
 #include "irdump.h"
+#include "ircons_t.h"
 
 #define NO_CFLOOPS_WITHOUT_HEAD 1
 
@@ -616,7 +616,6 @@ static void cfscc(ir_node *n)
        }
 }
 
-/* Constructs control flow backedge information for irg. */
 int construct_cf_backedges(ir_graph *irg)
 {
        ir_graph *rem = current_ir_graph;
@@ -652,7 +651,7 @@ int construct_cf_backedges(ir_graph *irg)
        assert(head_rem == current_loop);
        mature_loops(current_loop, irg->obst);
        set_irg_loop(irg, current_loop);
-       set_irg_state(irg, IR_GRAPH_STATE_CONSISTENT_LOOPINFO);
+       add_irg_properties(irg, IR_GRAPH_PROPERTY_CONSISTENT_LOOPINFO);
 
        current_ir_graph = rem;
        return max_loop_depth;
@@ -660,7 +659,7 @@ int construct_cf_backedges(ir_graph *irg)
 
 void assure_loopinfo(ir_graph *irg)
 {
-       if (is_irg_state(irg, IR_GRAPH_STATE_CONSISTENT_LOOPINFO))
+       if (irg_has_properties(irg, IR_GRAPH_PROPERTY_CONSISTENT_LOOPINFO))
                return;
        construct_cf_backedges(irg);
 }