From c1de6c0b16891b98abcff270cc5e84fee4f2dadd Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sun, 12 Oct 2008 10:36:15 +0000 Subject: [PATCH] Only regard be_Perm as Perm in the copyopt. There are no customs Perms and I doubt anything could handle them. [r22795] --- ir/be/becopyopt_t.h | 3 +-- ir/be/becopystat.c | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ir/be/becopyopt_t.h b/ir/be/becopyopt_t.h index 3ada85a33..7e5c882d2 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) { diff --git a/ir/be/becopystat.c b/ir/be/becopystat.c index 03b1e5e15..37f4e1917 100644 --- a/ir/be/becopystat.c +++ b/ir/be/becopystat.c @@ -37,6 +37,7 @@ #include "irnodeset.h" #include "bechordal_t.h" +#include "benode_t.h" #include "beutil.h" #include "becopyopt_t.h" #include "becopystat.h" -- 2.20.1