Commit ae515d01 authored by Matthias Braun's avatar Matthias Braun
Browse files

rework rematerialisation code to look at execution frequencies

[r13913]
parent 08ac465c
......@@ -36,6 +36,7 @@
void be_init_sched(void);
void be_init_blocksched(void);
void be_init_spill(void);
void be_init_spilloptions(void);
void be_init_listsched(void);
void be_init_schedrss(void);
void be_init_chordal(void);
......@@ -86,6 +87,7 @@ void be_init_modules(void)
be_init_sched();
be_init_blocksched();
be_init_spill();
be_init_spilloptions();
be_init_listsched();
be_init_schedrss();
be_init_chordal_main();
......
This diff is collapsed.
......@@ -33,7 +33,7 @@
#include "bearch.h"
#include "beirg.h"
typedef struct _spill_env_t spill_env_t;
typedef struct spill_env_t spill_env_t;
/**
* Creates a new spill environment.
......@@ -45,11 +45,6 @@ spill_env_t *be_new_spill_env(be_irg_t *birg);
*/
void be_delete_spill_env(spill_env_t *senv);
/**
* Sets the debug module of a spill environment.
*/
DEBUG_ONLY(void be_set_spill_env_dbg_module(spill_env_t *env, firm_dbg_module_t *dbg));
/**
* Inserts a new entry into the list of reloads to place (the real nodes will
* be created when be_insert_spills_reloads is run). You don't have to
......
......@@ -730,7 +730,6 @@ void be_spill_belady_spill_env(be_irg_t *birg, const arch_register_class_t *cls,
} else {
env.senv = spill_env;
}
DEBUG_ONLY(be_set_spill_env_dbg_module(env.senv, dbg);)
be_clear_links(irg);
/* Decide which phi nodes will be spilled and place copies for them into the graph */
......
......@@ -571,7 +571,6 @@ void be_spill_morgan(be_irg_t *birg, const arch_register_class_t *cls) {
env.cls = cls;
env.lv = be_get_birg_liveness(birg);
env.senv = be_new_spill_env(birg);
DEBUG_ONLY(be_set_spill_env_dbg_module(env.senv, dbg);)
obstack_init(&env.obst);
......
......@@ -65,7 +65,7 @@ void be_do_spill(be_irg_t *birg, const arch_register_class_t* cls)
}
}
void be_init_spill(void)
void be_init_spilloptions(void)
{
lc_opt_entry_t *be_grp = lc_opt_get_grp(firm_opt_get_root(), "be");
lc_opt_entry_t *spill_grp = lc_opt_get_grp(be_grp, "spill");
......@@ -75,4 +75,4 @@ void be_init_spill(void)
&spillers, (void**) &selected_spiller);
}
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_spill);
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_spilloptions);
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