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
71eb5fea
Commit
71eb5fea
authored
Oct 11, 2008
by
Christoph Mallon
Browse files
Remove the unused parameter const arch_env_t *arch_env from be_spill().
[r22732]
parent
8d8dfd23
Changes
3
Hide whitespace changes
Inline
Side-by-side
ir/be/benode.c
View file @
71eb5fea
...
...
@@ -1031,14 +1031,13 @@ int be_get_IncSP_align(const ir_node *irn)
return
a
->
align
;
}
ir_node
*
be_spill
(
const
arch_env_t
*
arch_env
,
ir_node
*
block
,
ir_node
*
irn
)
ir_node
*
be_spill
(
ir_node
*
block
,
ir_node
*
irn
)
{
ir_graph
*
irg
=
get_irn_irg
(
block
);
ir_node
*
frame
=
get_irg_frame
(
irg
);
const
arch_register_class_t
*
cls
=
arch_get_irn_reg_class
(
irn
,
-
1
);
const
arch_register_class_t
*
cls_frame
=
arch_get_irn_reg_class
(
frame
,
-
1
);
ir_node
*
spill
;
(
void
)
arch_env
;
// TODO remove parameter
spill
=
be_new_Spill
(
cls
,
cls_frame
,
irg
,
block
,
frame
,
irn
);
return
spill
;
...
...
ir/be/benode_t.h
View file @
71eb5fea
...
...
@@ -369,12 +369,11 @@ ir_node *be_Barrier_append_node(ir_node *barrier, ir_node *node);
/**
* Make a spill node.
*
* @param arch_env The architecture environment.
* @param irn The node to be spilled.
* @param spill_ctx The context in which the spill is introduced (This is mostly == irn up to the case of Phis).
* @return The new spill node.
*/
ir_node
*
be_spill
(
const
arch_env_t
*
arch_env
,
ir_node
*
block
,
ir_node
*
irn
);
ir_node
*
be_spill
(
ir_node
*
block
,
ir_node
*
irn
);
/**
* Make a reload and insert it into the schedule.
...
...
ir/be/bespill.c
View file @
71eb5fea
...
...
@@ -446,7 +446,7 @@ static void spill_irn(spill_env_t *env, spill_info_t *spillinfo)
after
=
skip_keeps_phis
(
after
);
spill
->
spill
=
be_spill
(
env
->
arch_env
,
block
,
to_spill
);
spill
->
spill
=
be_spill
(
block
,
to_spill
);
sched_add_after
(
after
,
spill
->
spill
);
DB
((
dbg
,
LEVEL_1
,
"
\t
%+F after %+F
\n
"
,
spill
->
spill
,
after
));
#ifdef FIRM_STATISTICS
...
...
Write
Preview
Supports
Markdown
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