Commit 831e040d authored by Christoph Mallon's avatar Christoph Mallon
Browse files

becopyopt: Replace is_Reg_Phi() by just is_Phi().

It makes no sense to check the mode of the Phi.
parent 4cbdab23
......@@ -207,7 +207,7 @@ static int co_is_optimizable_root(ir_node *irn)
if (arch_register_req_is(req, ignore))
return 0;
if (is_Reg_Phi(irn) || is_Perm_Proj(irn))
if (is_Phi(irn) || is_Perm_Proj(irn))
return 1;
if (arch_register_req_is(req, should_be_same))
......@@ -389,7 +389,7 @@ static void co_collect_units(ir_node *irn, void *env)
be_lv_t *const lv = be_get_irg_liveness(co->irg);
/* Phi with some/all of its arguments */
if (is_Reg_Phi(irn)) {
if (is_Phi(irn)) {
int i, arity;
/* init */
......@@ -771,7 +771,7 @@ static void build_graph_walker(ir_node *irn, void *env)
if (req->cls != co->cls || arch_register_req_is(req, ignore))
return;
if (is_Reg_Phi(irn)) { /* Phis */
if (is_Phi(irn)) { /* Phis */
for (pos=0, max=get_irn_arity(irn); pos<max; ++pos) {
ir_node *arg = get_irn_n(irn, pos);
add_edges(co, irn, arg, co->get_costs(irn, pos));
......
......@@ -56,8 +56,6 @@ static inline void set_irn_col(const arch_register_class_t *cls, ir_node *node,
#define list_entry_units(lh) list_entry(lh, unit_t, units)
#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_Proj(irn) (is_Proj(irn) && be_is_Perm(get_Proj_pred(irn)))
......
......@@ -243,7 +243,7 @@ static void create_affinity_edges(ir_node *irn, void *env)
unsigned pos;
unsigned max;
if (is_Reg_Phi(irn)) { /* Phis */
if (is_Phi(irn)) { /* Phis */
for (pos = 0, max = get_irn_arity(irn); pos < max; ++pos) {
ir_node *arg = get_irn_n(irn, pos);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment