Only regard be_Perm as Perm in the copyopt. There are no customs Perms and I doubt...
authorChristoph Mallon <christoph.mallon@gmx.de>
Sun, 12 Oct 2008 10:36:15 +0000 (10:36 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sun, 12 Oct 2008 10:36:15 +0000 (10:36 +0000)
[r22795]

ir/be/becopyopt_t.h
ir/be/becopystat.c

index 3ada85a..7e5c882 100644 (file)
@@ -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)
 {
index 03b1e5e..37f4e19 100644 (file)
@@ -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"