projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
54ce383
)
fix warning
author
Matthias Braun
<matze@braunis.de>
Sat, 8 Jan 2011 11:04:27 +0000
(11:04 +0000)
committer
Matthias Braun
<matze@braunis.de>
Sat, 8 Jan 2011 11:04:27 +0000
(11:04 +0000)
[r28227]
ir/be/bespilldaemel.c
patch
|
blob
|
history
diff --git
a/ir/be/bespilldaemel.c
b/ir/be/bespilldaemel.c
index
292d864
..
4b1311b
100644
(file)
--- a/
ir/be/bespilldaemel.c
+++ b/
ir/be/bespilldaemel.c
@@
-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;
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;
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 */
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) {
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);
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]),
/* sort spill candidates */
qsort(candidates, n_live_nodes, sizeof(candidates[0]),