summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beuses.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2011-06-20 19:47:51 +0200
committerMatthias Braun <matze@braunis.de>2011-06-21 20:05:11 +0200
commit8ccfe04ca59ff56fc32b2323b80cee2a5194694d (patch)
tree3b0173d80029bbf7cdedcd2c24792b495946c588 /ir/be/beuses.c
parent89ac4d2c92d3aa5fa50bac6944c3db6fb1e1fdd1 (diff)
fix more cparser warnings, cleanup some libcore code
Diffstat (limited to 'ir/be/beuses.c')
-rw-r--r--ir/be/beuses.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ir/be/beuses.c b/ir/be/beuses.c
index 497c136..d3b6012 100644
--- a/ir/be/beuses.c
+++ b/ir/be/beuses.c
@@ -223,7 +223,7 @@ static be_next_use_t get_next_use(be_uses_t *env, ir_node *from,
{
unsigned step;
ir_node *block = get_nodes_block(from);
- ir_node *next_use;
+ ir_node *next_use_node;
ir_node *node;
unsigned timestep;
unsigned next_use_step;
@@ -234,12 +234,12 @@ static be_next_use_t get_next_use(be_uses_t *env, ir_node *from,
from = sched_next(from);
}
- next_use = NULL;
+ next_use_node = NULL;
next_use_step = INT_MAX;
timestep = get_step(from);
foreach_out_edge(def, edge) {
- ir_node *node = get_edge_src_irn(edge);
- unsigned node_step;
+ node = get_edge_src_irn(edge);
+ unsigned node_step;
if (is_Anchor(node))
continue;
@@ -252,16 +252,16 @@ static be_next_use_t get_next_use(be_uses_t *env, ir_node *from,
if (node_step < timestep)
continue;
if (node_step < next_use_step) {
- next_use = node;
+ next_use_node = node;
next_use_step = node_step;
}
}
- if (next_use != NULL) {
+ if (next_use_node != NULL) {
be_next_use_t result;
result.time = next_use_step - timestep + skip_from_uses;
result.outermost_loop = get_loop_depth(get_irn_loop(block));
- result.before = next_use;
+ result.before = next_use_node;
return result;
}