remove arch_irn_class_is macro as it hides usages of arch_irn_class_XXX from grep...
authorMatthias Braun <matze@braunis.de>
Wed, 23 Jun 2010 10:32:42 +0000 (10:32 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 23 Jun 2010 10:32:42 +0000 (10:32 +0000)
[r27645]

ir/be/bearch.h
ir/be/bespillslots.c
ir/be/beverify.c

index b6ffb7f..0b3d499 100644 (file)
@@ -105,7 +105,7 @@ void arch_dump_register_reqs(FILE *F, const ir_node *node);
 void arch_dump_reqs_and_registers(FILE *F, const ir_node *node);
 
 /**
- * Node classification. Used for statistics.
+ * Node classification. Used for statistics and for detecting reload nodes.
  */
 typedef enum arch_irn_class_t {
        arch_irn_class_spill  = 1 << 0,
@@ -199,8 +199,6 @@ void arch_irn_set_register(ir_node *irn, int pos, const arch_register_t *reg);
  */
 arch_irn_class_t arch_irn_classify(const ir_node *irn);
 
-#define arch_irn_class_is(irn, irn_class) ((arch_irn_classify(irn) & arch_irn_class_ ## irn_class) != 0)
-
 /**
  * Get the flags of a node.
  * @param irn The node.
index eff37fd..6fa43ca 100644 (file)
@@ -816,11 +816,7 @@ static void collect_spills_walker(ir_node *node, void *data)
        const arch_register_class_t *cls;
        int align;
 
-       /* classify returns classification of the irn the proj is attached to */
-       if (is_Proj(node))
-               return;
-
-       if (!arch_irn_class_is(node, reload))
+       if (! (arch_irn_classify(node) & arch_irn_class_reload))
                return;
 
        mode  = get_irn_mode(node);
index 436af83..a175c9b 100644 (file)
@@ -534,11 +534,7 @@ static void collect_spills_walker(ir_node *node, void *data)
 {
        be_verify_spillslots_env_t *env = data;
 
-       /* @@@ ia32_classify returns classification of Proj_pred :-/ */
-       if (is_Proj(node))
-               return;
-
-       if (arch_irn_class_is(node, reload)) {
+       if (arch_irn_classify(node) & arch_irn_class_reload) {
                ir_node *spill = get_memory_edge(node);
                ir_entity *ent;