Commit b7af5a58 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Remove the unused parameter const arch_env_t *arch_env from be_set_phi_flags().

[r22740]
parent 7049fd07
......@@ -2367,7 +2367,7 @@ void be_abi_fix_stack_nodes(be_abi_irg_t *env)
for(i = 0; i < len; ++i) {
ir_node *phi = phis[i];
be_set_phi_reg_req(phi, &env->sp_req);
be_set_phi_flags(walker_env.arch_env, phi, arch_irn_flags_ignore | arch_irn_flags_modify_sp);
be_set_phi_flags(phi, arch_irn_flags_ignore | arch_irn_flags_modify_sp);
arch_set_irn_register(phi, env->arch_env->sp);
}
be_ssa_construction_destroy(&senv);
......
......@@ -1352,11 +1352,9 @@ void be_set_phi_reg_req(ir_node *node, const arch_register_req_t *req)
memcpy(&attr->req, req, sizeof(req[0]));
}
void be_set_phi_flags(const arch_env_t *arch_env, ir_node *node,
arch_irn_flags_t flags)
void be_set_phi_flags(ir_node *node, arch_irn_flags_t flags)
{
phi_attr_t *attr;
(void) arch_env;
assert(mode_is_datab(get_irn_mode(node)));
......
......@@ -518,8 +518,7 @@ void be_set_phi_reg_req(ir_node *phi, const arch_register_req_t *req);
/*
* Set flags for a phi node
*/
void be_set_phi_flags(const arch_env_t *arch_env, ir_node *phi,
arch_irn_flags_t flags);
void be_set_phi_flags(ir_node *phi, arch_irn_flags_t flags);
/**
* irn handler for common be nodes and Phi's.
......
......@@ -62,7 +62,6 @@ typedef struct spill_info_t {
typedef struct minibelady_env_t {
struct obstack obst;
const arch_env_t *arch_env;
const arch_register_t *reg;
const be_lv_t *lv;
void *func_env;
......@@ -547,7 +546,6 @@ void be_assure_state(be_irg_t *birg, const arch_register_t *reg, void *func_env,
}
obstack_init(&env.obst);
env.arch_env = be_get_birg_arch_env(birg);
env.reg = reg;
env.func_env = func_env;
env.create_spill = create_spill;
......@@ -600,7 +598,7 @@ void be_assure_state(be_irg_t *birg, const arch_register_t *reg, void *func_env,
len = ARR_LEN(phis);
for(i = 0; i < len; ++i) {
ir_node *phi = phis[i];
be_set_phi_flags(env.arch_env, phi, arch_irn_flags_ignore);
be_set_phi_flags(phi, arch_irn_flags_ignore);
arch_set_irn_register(phi, env.reg);
}
be_ssa_construction_destroy(&senv);
......
......@@ -225,7 +225,6 @@ static ir_node *create_fpu_mode_reload(void *env, ir_node *state,
}
typedef struct collect_fpu_mode_nodes_env_t {
const arch_env_t *arch_env;
ir_node **state_nodes;
} collect_fpu_mode_nodes_env_t;
......@@ -256,7 +255,6 @@ void rewire_fpu_mode_nodes(be_irg_t *birg)
int i, len;
/* do ssa construction for the fpu modes */
env.arch_env = be_get_birg_arch_env(birg);
env.state_nodes = NEW_ARR_F(ir_node*, 0);
irg_walk_graph(irg, collect_fpu_mode_nodes_walker, NULL, &env);
......@@ -292,7 +290,7 @@ void rewire_fpu_mode_nodes(be_irg_t *birg)
len = ARR_LEN(phis);
for(i = 0; i < len; ++i) {
ir_node *phi = phis[i];
be_set_phi_flags(env.arch_env, phi, arch_irn_flags_ignore);
be_set_phi_flags(phi, arch_irn_flags_ignore);
arch_set_irn_register(phi, reg);
}
be_ssa_construction_destroy(&senv);
......
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