From: Christoph Mallon Date: Fri, 30 Nov 2012 08:31:15 +0000 (+0100) Subject: bespillutil: Inline be_add_reload2() into its only caller be_add_reload(), which... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=a083a3a0c90ca75e4d7218de86cfaba40038f275;p=libfirm bespillutil: Inline be_add_reload2() into its only caller be_add_reload(), which in turn only calls the former. --- diff --git a/ir/be/bespillutil.c b/ir/be/bespillutil.c index c366863bd..686ad687b 100644 --- a/ir/be/bespillutil.c +++ b/ir/be/bespillutil.c @@ -228,8 +228,7 @@ void be_add_spill(spill_env_t *env, ir_node *to_spill, ir_node *after) spill_info->spills = spill; } -void be_add_reload2(spill_env_t *env, ir_node *to_spill, ir_node *before, - const arch_register_class_t *reload_cls, int allow_remat) +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) { spill_info_t *info; reloader_t *rel; @@ -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")); } -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 *last = sched_last(block); diff --git a/ir/be/bespillutil.h b/ir/be/bespillutil.h index c4b674c77..da78cd300 100644 --- a/ir/be/bespillutil.h +++ b/ir/be/bespillutil.h @@ -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, 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 * @see be_add_reload