projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- re-enabled global-non-null test, but place Confirms only before Cmp nodes
[libfirm]
/
ir
/
ana
/
irextbb2.c
diff --git
a/ir/ana/irextbb2.c
b/ir/ana/irextbb2.c
index
9f83ec0
..
2e01d01
100644
(file)
--- a/
ir/ana/irextbb2.c
+++ b/
ir/ana/irextbb2.c
@@
-109,11
+109,10
@@
static void create_extblk(ir_node *block, env_t *env)
{
ir_extblk *extblk;
{
ir_extblk *extblk;
- if (irn_visited(block))
+ if (irn_visited
_else_mark
(block))
return;
extblk = allocate_extblk(block, env);
return;
extblk = allocate_extblk(block, env);
- mark_irn_visited(block);
pick_successor(block, extblk, env);
}
pick_successor(block, extblk, env);
}
@@
-191,7
+190,7
@@
void compute_extbb_execfreqs(ir_graph *irg, ir_exec_freq *execfreqs) {
obstack_free(irg->extbb_obst, NULL);
}
else {
obstack_free(irg->extbb_obst, NULL);
}
else {
- irg->extbb_obst =
xmalloc(sizeof(*irg->extbb_obst)
);
+ irg->extbb_obst =
XMALLOC(struct obstack
);
}
obstack_init(irg->extbb_obst);
}
obstack_init(irg->extbb_obst);
@@
-207,9
+206,7
@@
void compute_extbb_execfreqs(ir_graph *irg, ir_exec_freq *execfreqs) {
/* the end block needs a extbb assigned (even for endless loops) */
endblock = get_irg_end_block(irg);
/* the end block needs a extbb assigned (even for endless loops) */
endblock = get_irg_end_block(irg);
- if (! irn_visited(endblock)) {
- create_extblk(endblock, &env);
- }
+ create_extblk(endblock, &env);
/*
Ok, we have now the list of all extended blocks starting with env.head
/*
Ok, we have now the list of all extended blocks starting with env.head