summaryrefslogtreecommitdiffhomepage
path: root/ir/be/belistsched.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2008-10-12 00:39:52 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2008-10-12 00:39:52 +0200
commitee240ce77c83b838059a5bca40e8a1d7cf35c0d5 (patch)
tree99fd85f6e3c34269f787d9d42d6431cf42492d78 /ir/be/belistsched.c
parentd0bb153368997acebe0339c165bec2ec3235581b (diff)
Remove the unused attributes const arch_env_t *arch_env and const ir_graph *irg from struct sched_env_t.
[r22772]
Diffstat (limited to 'ir/be/belistsched.c')
-rw-r--r--ir/be/belistsched.c24
1 files changed, 8 insertions, 16 deletions
diff --git a/ir/be/belistsched.c b/ir/be/belistsched.c
index 3718953..945a254 100644
--- a/ir/be/belistsched.c
+++ b/ir/be/belistsched.c
@@ -140,8 +140,6 @@ typedef struct _sched_irn_t {
typedef struct _sched_env_t {
sched_irn_t *sched_info; /**< scheduling info per node */
const list_sched_selector_t *selector; /**< The node selector. */
- const arch_env_t *arch_env; /**< The architecture environment. */
- const ir_graph *irg; /**< The graph to schedule. */
void *selector_env; /**< A pointer to give to the selector. */
} sched_env_t;
@@ -546,8 +544,7 @@ static void list_sched_block(ir_node *block, void *env_ptr)
/* List schedule a graph. */
void list_sched(be_irg_t *birg, be_options_t *be_opts)
{
- const arch_env_t *arch_env = birg->main_env->arch_env;
- ir_graph *irg = birg->irg;
+ ir_graph *irg = birg->irg;
int num_nodes;
sched_env_t env;
@@ -575,8 +572,8 @@ void list_sched(be_irg_t *birg, be_options_t *be_opts)
*/
/* Assure, that we have no dangling out-edges to deleted stuff */
- edges_deactivate(birg->irg);
- edges_activate(birg->irg);
+ edges_deactivate(irg);
+ edges_activate(irg);
#endif
switch (list_sched_options.prep) {
@@ -594,9 +591,7 @@ void list_sched(be_irg_t *birg, be_options_t *be_opts)
/* initialize environment for list scheduler */
memset(&env, 0, sizeof(env));
- env.selector = arch_env_get_list_sched_selector(arch_env, &sel);
- env.arch_env = arch_env;
- env.irg = irg;
+ env.selector = arch_env_get_list_sched_selector(birg->main_env->arch_env, &sel);
env.sched_info = NEW_ARR_F(sched_irn_t, num_nodes);
memset(env.sched_info, 0, num_nodes * sizeof(env.sched_info[0]));
@@ -620,8 +615,7 @@ void list_sched(be_irg_t *birg, be_options_t *be_opts)
void list_sched_single_block(const be_irg_t *birg, ir_node *block,
be_options_t *be_opts)
{
- const arch_env_t *arch_env = birg->main_env->arch_env;
- ir_graph *irg = birg->irg;
+ ir_graph *irg = birg->irg;
int num_nodes;
sched_env_t env;
@@ -642,16 +636,14 @@ void list_sched_single_block(const be_irg_t *birg, ir_node *block,
}
/* Assure, that the out edges are computed */
- edges_deactivate(birg->irg);
- edges_activate(birg->irg);
+ edges_deactivate(irg);
+ edges_activate(irg);
num_nodes = get_irg_last_idx(irg);
/* initialize environment for list scheduler */
memset(&env, 0, sizeof(env));
- env.selector = arch_env_get_list_sched_selector(arch_env, &sel);
- env.arch_env = arch_env;
- env.irg = irg;
+ env.selector = arch_env_get_list_sched_selector(birg->main_env->arch_env, &sel);
env.sched_info = NEW_ARR_F(sched_irn_t, num_nodes);
memset(env.sched_info, 0, num_nodes * sizeof(env.sched_info[0]));