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
0455e974
Commit
0455e974
authored
May 29, 2016
by
Christoph Mallon
Browse files
Reduce code dupliaction a bit.
parent
b8290c9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/bespillutil.c
View file @
0455e974
...
...
@@ -488,8 +488,8 @@ static void determine_spill_costs(spill_env_t *env, spill_info_t *spillinfo)
if
(
spillinfo
->
spill_costs
>=
0
)
return
;
ir_node
*
to_spill
=
spillinfo
->
to_spill
;
const
ir_node
*
insn
=
skip_Proj
_const
(
to_spill
);
ir_node
*
const
to_spill
=
spillinfo
->
to_spill
;
ir_node
*
const
insn
=
skip_Proj
(
to_spill
);
assert
(
!
arch_irn_is
(
insn
,
dont_spill
));
assert
(
!
arch_irn_is
(
insn
,
reload
));
...
...
@@ -526,7 +526,7 @@ static void determine_spill_costs(spill_env_t *env, spill_info_t *spillinfo)
/* override spillinfos or create a new one */
spill_t
*
spill
=
OALLOC
(
&
env
->
obst
,
spill_t
);
spill
->
after
=
be_move_after_schedule_first
(
skip_Proj
(
to_spill
)
);
spill
->
after
=
be_move_after_schedule_first
(
insn
);
spill
->
next
=
NULL
;
spill
->
spill
=
NULL
;
...
...
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