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

bespillutil: Inline be_add_reload2() into its only caller be_add_reload(),...

bespillutil: Inline be_add_reload2() into its only caller be_add_reload(), which in turn only calls the former.
parent 7d56f8d5
...@@ -228,8 +228,7 @@ void be_add_spill(spill_env_t *env, ir_node *to_spill, ir_node *after) ...@@ -228,8 +228,7 @@ void be_add_spill(spill_env_t *env, ir_node *to_spill, ir_node *after)
spill_info->spills = spill; spill_info->spills = spill;
} }
void be_add_reload2(spill_env_t *env, ir_node *to_spill, ir_node *before, void be_add_reload(spill_env_t *env, ir_node *to_spill, ir_node *before, const arch_register_class_t *reload_cls, int allow_remat)
const arch_register_class_t *reload_cls, int allow_remat)
{ {
spill_info_t *info; spill_info_t *info;
reloader_t *rel; reloader_t *rel;
...@@ -265,13 +264,6 @@ void be_add_reload2(spill_env_t *env, ir_node *to_spill, ir_node *before, ...@@ -265,13 +264,6 @@ void be_add_reload2(spill_env_t *env, ir_node *to_spill, ir_node *before,
to_spill, before, allow_remat ? "" : " not")); to_spill, before, allow_remat ? "" : " not"));
} }
void be_add_reload(spill_env_t *senv, ir_node *to_spill, ir_node *before,
const arch_register_class_t *reload_cls, int allow_remat)
{
be_add_reload2(senv, to_spill, before, reload_cls, allow_remat);
}
ir_node *be_get_end_of_block_insertion_point(const ir_node *block) ir_node *be_get_end_of_block_insertion_point(const ir_node *block)
{ {
ir_node *last = sched_last(block); ir_node *last = sched_last(block);
......
...@@ -71,9 +71,6 @@ void be_add_spill(spill_env_t *senv, ir_node *to_spill, ir_node *after); ...@@ -71,9 +71,6 @@ void be_add_spill(spill_env_t *senv, ir_node *to_spill, ir_node *after);
void be_add_reload(spill_env_t *senv, ir_node *to_spill, ir_node *before, void be_add_reload(spill_env_t *senv, ir_node *to_spill, ir_node *before,
const arch_register_class_t *reload_cls, int allow_remat); const arch_register_class_t *reload_cls, int allow_remat);
void be_add_reload2(spill_env_t *senv, ir_node *to_spill, ir_node *before,
const arch_register_class_t *reload_cls, int allow_remat);
/** /**
* Analog to be_add_reload, but places the reload "on an edge" between 2 blocks * Analog to be_add_reload, but places the reload "on an edge" between 2 blocks
* @see be_add_reload * @see be_add_reload
......
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