no need for no_float_fold hack anymore
[libfirm] / ir / be / becopyheur2.c
index 85cd097..3f19981 100644 (file)
@@ -99,9 +99,9 @@ static be_ifg_dump_dot_cb_t ifg_dot_cb;
 
 typedef unsigned col_t;
 
-typedef struct _co2_irn_t       co2_irn_t;
-typedef struct _co2_cloud_t     co2_cloud_t;
-typedef struct _co2_cloud_irn_t co2_cloud_irn_t;
+typedef struct co2_irn_t       co2_irn_t;
+typedef struct co2_cloud_t     co2_cloud_t;
+typedef struct co2_cloud_irn_t co2_cloud_irn_t;
 
 typedef struct {
        col_t col;
@@ -119,7 +119,7 @@ typedef struct {
        DEBUG_ONLY(firm_dbg_module_t *dbg;)
 } co2_t;
 
-struct _co2_irn_t {
+struct co2_irn_t {
        const ir_node   *irn;
        affinity_node_t *aff;
        co2_irn_t       *touched_next;
@@ -133,8 +133,8 @@ struct _co2_irn_t {
        struct list_head changed_list;
 };
 
-struct _co2_cloud_irn_t {
-       struct _co2_irn_t  inh;
+struct co2_cloud_irn_t {
+       struct co2_irn_t   inh;
        co2_cloud_t       *cloud;
        int                visited;
        int                index;
@@ -151,7 +151,7 @@ struct _co2_cloud_irn_t {
        struct list_head   mst_list;
 };
 
-struct _co2_cloud_t {
+struct co2_cloud_t {
        co2_t            *env;
        struct obstack    obst;
        int               costs;
@@ -180,12 +180,12 @@ typedef struct {
 #define get_co2_irn(co2, irn)         ((co2_irn_t *)       phase_get_or_set_irn_data(&co2->ph, irn))
 #define get_co2_cloud_irn(co2, irn)   ((co2_cloud_irn_t *) phase_get_or_set_irn_data(&co2->ph, irn))
 
-static void *co2_irn_init(ir_phase *ph, const ir_node *irn, void *data)
+static void *co2_irn_init(ir_phase *ph, const ir_node *irn)
 {
        co2_t *env         = (co2_t *) ph;
        affinity_node_t *a = get_affinity_info(env->co, irn);
        size_t size        = a ? sizeof(co2_cloud_irn_t) : sizeof(co2_irn_t);
-       co2_irn_t *ci      = data ? data : phase_alloc(ph, size);
+       co2_irn_t *ci      = phase_alloc(ph, size);
 
        memset(ci, 0, size);
        INIT_LIST_HEAD(&ci->changed_list);
@@ -855,7 +855,7 @@ static void apply_coloring(co2_cloud_irn_t *ci, col_t col, int depth)
        // assert(ok && "Color changing may not fail while committing the coloring");
        materialize_coloring(&changed);
 
-       for (i = 0; i < ci->mst_n_childs; ++i) {
+       for (i = 0; i < ci->mst_n_childs; ++i) {
                apply_coloring(ci->mst_childs[i], front[i], depth + 1);
        }
 }