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
df99857f
Commit
df99857f
authored
Jan 08, 2011
by
Matthias Braun
Browse files
fix warning
[r28227]
parent
54ce3834
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/bespilldaemel.c
View file @
df99857f
...
...
@@ -151,6 +151,7 @@ static void do_spilling(ir_nodeset_t *live_nodes, ir_node *node)
spill_candidate_t
*
candidates
;
ir_nodeset_iterator_t
iter
;
int
i
,
arity
;
size_t
c
;
int
spills_needed
;
size_t
cand_idx
;
ir_node
*
n
;
...
...
@@ -184,17 +185,17 @@ static void do_spilling(ir_nodeset_t *live_nodes, ir_node *node)
candidates
=
ALLOCAN
(
spill_candidate_t
,
n_live_nodes
);
/* construct array with spill candidates and calculate their costs */
i
=
0
;
c
=
0
;
foreach_ir_nodeset
(
live_nodes
,
n
,
iter
)
{
spill_candidate_t
*
candidate
=
&
candidates
[
i
];
spill_candidate_t
*
candidate
=
&
candidates
[
c
];
assert
(
!
bitset_is_set
(
spilled_nodes
,
get_irn_idx
(
n
)));
candidate
->
node
=
n
;
candidate
->
costs
=
get_spill_costs
(
n
);
++
i
;
++
c
;
}
assert
(
i
==
n_live_nodes
);
assert
(
c
==
n_live_nodes
);
/* sort spill candidates */
qsort
(
candidates
,
n_live_nodes
,
sizeof
(
candidates
[
0
]),
...
...
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