summaryrefslogtreecommitdiffhomepage
path: root/ir/be/becopyopt_t.h
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2008-10-15 08:13:40 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2008-10-15 08:13:40 +0200
commit4c875e72735d6f438c64a9e0d8de71a5ceb838c8 (patch)
tree26401c5197ce593d839269eb36acd46d979b0d6d /ir/be/becopyopt_t.h
parent3e3a3167d91df6131b2dd16c4779273afed2eee7 (diff)
Marginally reduce the number of calls to arch_get_irn_reg_class().
[r22894]
Diffstat (limited to 'ir/be/becopyopt_t.h')
-rw-r--r--ir/be/becopyopt_t.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/ir/be/becopyopt_t.h b/ir/be/becopyopt_t.h
index 13a9f86..2519c64 100644
--- a/ir/be/becopyopt_t.h
+++ b/ir/be/becopyopt_t.h
@@ -58,9 +58,8 @@ struct _copy_opt_t {
#define ASSERT_OU_AVAIL(co) assert((co)->units.next && "Representation as optimization-units not build")
#define ASSERT_GS_AVAIL(co) assert((co)->nodes && "Representation as graph not build")
-#define get_irn_col(irn) arch_register_get_index(arch_get_irn_register(irn))
-#define set_irn_col(co, irn, col) arch_set_irn_register(irn, arch_register_for_index((co)->cls, col))
-#define is_curr_reg_class(co, irn) (arch_get_irn_reg_class(irn, -1) == (co)->cls)
+#define get_irn_col(irn) arch_register_get_index(arch_get_irn_register(irn))
+#define set_irn_col(co, irn, col) arch_set_irn_register(irn, arch_register_for_index((co)->cls, col))
#define list_entry_units(lh) list_entry(lh, unit_t, units)