summaryrefslogtreecommitdiffhomepage
path: root/ir/be/becopyopt_t.h
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2008-10-12 12:36:15 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2008-10-12 12:36:15 +0200
commitc1de6c0b16891b98abcff270cc5e84fee4f2dadd (patch)
tree43e112b95164cac48f14f808e70b4480021a3beb /ir/be/becopyopt_t.h
parent89643a6a3a23014db20f0203257ba6a58a0c431d (diff)
Only regard be_Perm as Perm in the copyopt. There are no customs Perms and I doubt anything could handle them.
[r22795]
Diffstat (limited to 'ir/be/becopyopt_t.h')
-rw-r--r--ir/be/becopyopt_t.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/ir/be/becopyopt_t.h b/ir/be/becopyopt_t.h
index 3ada85a..7e5c882 100644
--- a/ir/be/becopyopt_t.h
+++ b/ir/be/becopyopt_t.h
@@ -67,8 +67,7 @@ struct _copy_opt_t {
#define is_Reg_Phi(irn) (is_Phi(irn) && mode_is_data(get_irn_mode(irn)))
#define get_Perm_src(irn) (get_irn_n(get_Proj_pred(irn), get_Proj_proj(irn)))
-#define is_Perm(irn) (arch_irn_classify(irn) == arch_irn_class_perm)
-#define is_Perm_Proj(irn) (is_Proj(irn) && is_Perm(get_Proj_pred(irn)))
+#define is_Perm_Proj(irn) (is_Proj(irn) && be_is_Perm(get_Proj_pred(irn)))
static INLINE int is_2addr_code(const arch_register_req_t *req)
{