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
eed1c09d
Commit
eed1c09d
authored
Mar 14, 2006
by
Daniel Grund
Browse files
changed spill costs for reloads
parent
13291cce
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/beraextern.c
View file @
eed1c09d
...
...
@@ -526,14 +526,16 @@ static INLINE void dump_constraint(be_raext_env_t *raenv, ir_node *irn, int pos)
}
}
#define UNSPILLABLE -1
static
INLINE
int
get_spill_costs
(
be_raext_env_t
*
raenv
,
var_info_t
*
vi
)
{
ir_node
*
irn
;
int
c_spills
=
0
,
c_reloads
=
0
;
pset_foreach
(
vi
->
values
,
irn
)
{
if
(
arch_irn_is_ignore
(
raenv
->
aenv
,
irn
))
{
if
(
arch_irn_is_ignore
(
raenv
->
aenv
,
irn
)
||
be_is_Reload
(
irn
)
)
{
pset_break
(
vi
->
values
);
return
-
1
;
return
UNSPILLABLE
;
}
if
(
is_Phi
(
irn
))
{
...
...
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