projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
shouldn't be here anymore
[libfirm]
/
ir
/
be
/
beutil.c
diff --git
a/ir/be/beutil.c
b/ir/be/beutil.c
index
a600ab7
..
0aa9339
100644
(file)
--- a/
ir/be/beutil.c
+++ b/
ir/be/beutil.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1995-200
7
University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-200
8
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
*
* This file is part of libFirm.
*
@@
-128,7
+128,9
@@
void dump_allocated_irg(arch_env_t *arch_env, ir_graph *irg, char *suffix)
*/
static int sched_edge_hook(FILE *F, ir_node *irn)
{
*/
static int sched_edge_hook(FILE *F, ir_node *irn)
{
- if(sched_is_scheduled(irn) && sched_has_prev(irn)) {
+ if (is_Proj(irn))
+ return 1;
+ if (sched_is_scheduled(irn) && sched_has_prev(irn)) {
ir_node *prev = sched_prev(irn);
fprintf(F, "edge:{sourcename:\"");
PRINT_NODEID(irn);
ir_node *prev = sched_prev(irn);
fprintf(F, "edge:{sourcename:\"");
PRINT_NODEID(irn);
@@
-143,7
+145,8
@@
void dump_ir_block_graph_sched(ir_graph *irg, const char *suffix) {
DUMP_NODE_EDGE_FUNC old = get_dump_node_edge_hook();
dump_consts_local(0);
DUMP_NODE_EDGE_FUNC old = get_dump_node_edge_hook();
dump_consts_local(0);
- set_dump_node_edge_hook(sched_edge_hook);
+ if (have_sched_info(irg))
+ set_dump_node_edge_hook(sched_edge_hook);
dump_ir_block_graph(irg, suffix);
set_dump_node_edge_hook(old);
}
dump_ir_block_graph(irg, suffix);
set_dump_node_edge_hook(old);
}
@@
-152,7
+155,8
@@
void dump_ir_extblock_graph_sched(ir_graph *irg, const char *suffix) {
DUMP_NODE_EDGE_FUNC old = get_dump_node_edge_hook();
dump_consts_local(0);
DUMP_NODE_EDGE_FUNC old = get_dump_node_edge_hook();
dump_consts_local(0);
- set_dump_node_edge_hook(sched_edge_hook);
+ if (have_sched_info(irg))
+ set_dump_node_edge_hook(sched_edge_hook);
dump_ir_extblock_graph(irg, suffix);
set_dump_node_edge_hook(old);
}
dump_ir_extblock_graph(irg, suffix);
set_dump_node_edge_hook(old);
}