summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestat.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2011-11-10 13:57:33 +0100
committerMatthias Braun <matze@braunis.de>2011-11-10 14:17:50 +0100
commit5530877cfe293d952cef32d005c457409f2a2150 (patch)
treeb8a5c750c36587ca2f4f58d22afa5a67c9b32962 /ir/be/bestat.c
parentc2e55800e76ff59722d4774e212908cda1dae592 (diff)
be: get rid of arch_irn_classify callback
Diffstat (limited to 'ir/be/bestat.c')
-rw-r--r--ir/be/bestat.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/ir/be/bestat.c b/ir/be/bestat.c
index abe28ea..bdc8d9d 100644
--- a/ir/be/bestat.c
+++ b/ir/be/bestat.c
@@ -163,19 +163,10 @@ static void node_stat_walker(ir_node *irn, void *data)
} else {
(*stats)[BE_STAT_PHIS]++;
}
- } else if (!is_Proj(irn)) {
- arch_irn_class_t classify = arch_irn_classify(irn);
-
- if (classify & arch_irn_class_spill)
- (*stats)[BE_STAT_SPILLS]++;
- if (classify & arch_irn_class_reload)
- (*stats)[BE_STAT_RELOADS]++;
- if (classify & arch_irn_class_remat)
- (*stats)[BE_STAT_REMATS]++;
- if (classify & arch_irn_class_copy)
- (*stats)[BE_STAT_COPIES]++;
- if (classify & arch_irn_class_perm)
- (*stats)[BE_STAT_PERMS]++;
+ } else if (be_is_Perm(irn)) {
+ (*stats)[BE_STAT_PERMS]++;
+ } else if (be_is_Copy(irn)) {
+ (*stats)[BE_STAT_COPIES]++;
}
}
@@ -205,9 +196,6 @@ static const char *get_stat_name(enum be_stat_tag_t tag)
case BE_STAT_MEM_PHIS: return "mem_phis";
case BE_STAT_COPIES: return "copies";
case BE_STAT_PERMS: return "perms";
- case BE_STAT_SPILLS: return "spills";
- case BE_STAT_RELOADS: return "reloads";
- case BE_STAT_REMATS: return "remats";
default: panic("unknown stat tag found");
}
}