summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beinfo.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-11-24 21:28:19 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-11-24 22:09:25 +0100
commit362eed8b3b07f84194faae49b576c5d22efd7fcd (patch)
treea560d8c6341eddd55e7b6cf7d85637d60a8d9560 /ir/be/beinfo.c
parentde85f8ac7a6cca006793ffdbb767aee4814db66e (diff)
besched: Remove the unused/unnecessary functions sched_has_next() and sched_has_prev().
Diffstat (limited to 'ir/be/beinfo.c')
-rw-r--r--ir/be/beinfo.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/ir/be/beinfo.c b/ir/be/beinfo.c
index 332173e..bc6b5a3 100644
--- a/ir/be/beinfo.c
+++ b/ir/be/beinfo.c
@@ -155,13 +155,15 @@ static void sched_edge_hook(FILE *F, const ir_node *irn)
if (get_irn_irg(irn)->be_data == NULL)
return;
- if (sched_is_scheduled(irn) && sched_has_prev(irn) && !is_Block(irn)) {
- ir_node *prev = sched_prev(irn);
- fprintf(F, "edge:{sourcename: ");
- print_nodeid(F, irn);
- fprintf(F, " targetname: ");
- print_nodeid(F, prev);
- fprintf(F, " color:magenta}\n");
+ if (sched_is_scheduled(irn) && !is_Block(irn)) {
+ ir_node *const prev = sched_prev(irn);
+ if (!sched_is_begin(prev)) {
+ fprintf(F, "edge:{sourcename: ");
+ print_nodeid(F, irn);
+ fprintf(F, " targetname: ");
+ print_nodeid(F, prev);
+ fprintf(F, " color:magenta}\n");
+ }
}
}