X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbecopyilp_t.h;h=de8925e1e0cd0e5db3d1d33b4a6915fe67da18f3;hb=1d59167bbbeefad84d24f1f752c1715502d37e3e;hp=77605a82d2dd7e5f54ba5ea9adf981ac723a8c91;hpb=90e7800f3667d23cb12fe03ff279cce0f3d71341;p=libfirm diff --git a/ir/be/becopyilp_t.h b/ir/be/becopyilp_t.h index 77605a82d..de8925e1e 100644 --- a/ir/be/becopyilp_t.h +++ b/ir/be/becopyilp_t.h @@ -13,7 +13,6 @@ #define FIRM_BE_BECOPYILP_T_H #include "firm_types.h" -#include "pset.h" #include "becopyopt_t.h" /****************************************************************************** @@ -26,24 +25,19 @@ *****************************************************************************/ -typedef struct coloring_suffix_t coloring_suffix_t; - -struct coloring_suffix_t { - coloring_suffix_t *next; - ir_node *irn; -}; - typedef struct size_red_t { - copy_opt_t *co; - pset *all_removed; /**< All nodes removed during problem size reduction */ - coloring_suffix_t *col_suff; /**< Coloring suffix. Reverse would be a PEO prefix */ - struct obstack ob; + copy_opt_t *co; + ir_node **col_suff; /**< Coloring suffix. A PEO prefix. */ + ir_nodeset_t all_removed; /**< All nodes removed during problem size reduction */ } size_red_t; /** * Checks if a node has already been removed */ -#define sr_is_removed(sr, irn) pset_find_ptr((sr)->all_removed, irn) +static inline bool sr_is_removed(size_red_t const *const sr, ir_node const *const irn) +{ + return ir_nodeset_contains(&sr->all_removed, irn); +} /** * TODO: This search is necessary because during the construction of the