Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
8228e120
Commit
8228e120
authored
Mar 04, 2011
by
Matthias Braun
Browse files
remove unused be_add_remat function
parent
58f208f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/bespillutil.c
View file @
8228e120
...
...
@@ -232,29 +232,6 @@ void be_add_spill(spill_env_t *env, ir_node *to_spill, ir_node *after)
spill_info
->
spills
=
spill
;
}
void
be_add_remat
(
spill_env_t
*
env
,
ir_node
*
to_spill
,
ir_node
*
before
,
ir_node
*
rematted_node
)
{
spill_info_t
*
spill_info
;
reloader_t
*
reloader
;
spill_info
=
get_spillinfo
(
env
,
to_spill
);
/* add the remat information */
reloader
=
OALLOC
(
&
env
->
obst
,
reloader_t
);
reloader
->
next
=
spill_info
->
reloaders
;
reloader
->
reloader
=
before
;
reloader
->
rematted_node
=
rematted_node
;
reloader
->
remat_cost_delta
=
0
;
/* We will never have a cost win over a
reload since we're not even allowed to
create a reload */
spill_info
->
reloaders
=
reloader
;
DBG
((
dbg
,
LEVEL_1
,
"creating spillinfo for %+F, will be rematerialized before %+F
\n
"
,
to_spill
,
before
));
}
void
be_add_reload2
(
spill_env_t
*
env
,
ir_node
*
to_spill
,
ir_node
*
before
,
ir_node
*
can_spill_after
,
const
arch_register_class_t
*
reload_cls
,
int
allow_remat
)
...
...
ir/be/bespillutil.h
View file @
8228e120
...
...
@@ -92,12 +92,6 @@ void be_add_reload_on_edge(spill_env_t *senv, ir_node *to_spill, ir_node *bl,
int
pos
,
const
arch_register_class_t
*
reload_cls
,
int
allow_remat
);
/**
* Analog to be_add_reload but adds an already created rematerialized node.
*/
void
be_add_remat
(
spill_env_t
*
env
,
ir_node
*
to_spill
,
ir_node
*
before
,
ir_node
*
rematted_node
);
/**
* The main function that places real spills/reloads (or rematerializes values)
* for all values where be_add_reload was called. It then rebuilds the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment