summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bera.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2006-08-08 14:14:54 +0200
committerMatthias Braun <matze@braunis.de>2006-08-08 14:14:54 +0200
commit1d488e74cf7b5bf1ae976201e3cffab3ad010ed0 (patch)
tree24b39a25e56cd6aa2d14b847b40ddbac4a42c8d4 /ir/be/bera.c
parenta6d005199484c4a0dbaff70289a8a4684c940363 (diff)
- compute liveness for (nearly) all nodes
- place memperm projs into the same block as the memperm - schedule all projs of memperm
Diffstat (limited to 'ir/be/bera.c')
-rw-r--r--ir/be/bera.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ir/be/bera.c b/ir/be/bera.c
index 97369e1..2178ec7e 100644
--- a/ir/be/bera.c
+++ b/ir/be/bera.c
@@ -20,7 +20,10 @@
static sched_timestep_t get_time_step(const ir_node *irn)
{
- return is_Phi(irn) ? 0 : sched_get_time_step(irn);
+ if(is_Phi(irn))
+ return 0;
+
+ return sched_get_time_step(irn);
}
int value_dominates(const ir_node *a, const ir_node *b)
@@ -95,7 +98,7 @@ int values_interfere(const be_lv_t *lv, const ir_node *a, const ir_node *b)
* performed.
*/
foreach_out_edge(a, edge) {
- const ir_node *user = edge->src;
+ const ir_node *user = get_edge_src_irn(edge);
if(get_nodes_block(user) == bb && !is_Phi(user) && b != user && value_dominates(b, user))
return 1;
}