summaryrefslogtreecommitdiffhomepage
path: root/ir/be/becopyilp_t.h
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-12-16 23:12:33 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-12-16 23:45:36 +0100
commit0caf8d864fd6185090402563beaac03aaee73d4d (patch)
tree9740419e616182ad322c44f39ae3e9e7a0f2eb28 /ir/be/becopyilp_t.h
parent90e7800f3667d23cb12fe03ff279cce0f3d71341 (diff)
becopyilp: Use a ir_nodeset instead of a pset for all_removed.
Diffstat (limited to 'ir/be/becopyilp_t.h')
-rw-r--r--ir/be/becopyilp_t.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/ir/be/becopyilp_t.h b/ir/be/becopyilp_t.h
index 77605a8..83e9ee1 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"
/******************************************************************************
@@ -35,7 +34,7 @@ struct coloring_suffix_t {
typedef struct size_red_t {
copy_opt_t *co;
- pset *all_removed; /**< All nodes removed during problem size reduction */
+ ir_nodeset_t 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;
} size_red_t;
@@ -43,7 +42,10 @@ typedef struct 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