projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improve firm profiler (based on patch by Steven Schäfer)
[libfirm]
/
ir
/
ir
/
ircons.c
diff --git
a/ir/ir/ircons.c
b/ir/ir/ircons.c
index
6ac3a88
..
f38994b
100644
(file)
--- a/
ir/ir/ircons.c
+++ b/
ir/ir/ircons.c
@@
-285,13
+285,11
@@
static ir_node *get_r_value_internal(ir_node *block, int pos, ir_mode *mode)
return res;
/* We ran into a cycle. This may happen in unreachable loops. */
return res;
/* We ran into a cycle. This may happen in unreachable loops. */
- if (irn_visited(block)) {
+ if (irn_visited
_else_mark
(block)) {
/* Since the loop is unreachable, return a Bad. */
return new_r_Bad(irg);
}
/* Since the loop is unreachable, return a Bad. */
return new_r_Bad(irg);
}
- mark_irn_visited(block);
-
/* in a matured block we can immediately determine the phi arguments */
if (get_Block_matured(block)) {
int arity = get_irn_arity(block);
/* in a matured block we can immediately determine the phi arguments */
if (get_Block_matured(block)) {
int arity = get_irn_arity(block);
@@
-503,7
+501,6
@@
ir_node *new_rd_immBlock(dbg_info *dbgi, ir_graph *irg)
res = new_ir_node(dbgi, irg, NULL, op_Block, mode_BB, -1, NULL);
set_Block_matured(res, 0);
res = new_ir_node(dbgi, irg, NULL, op_Block, mode_BB, -1, NULL);
set_Block_matured(res, 0);
- res->attr.block.is_dead = 0;
res->attr.block.irg.irg = irg;
res->attr.block.backedge = NULL;
res->attr.block.in_cg = NULL;
res->attr.block.irg.irg = irg;
res->attr.block.backedge = NULL;
res->attr.block.in_cg = NULL;
@@
-598,9
+595,8
@@
static ir_mode *guess_recursively(ir_node *block, int pos)
int n_preds;
int i;
int n_preds;
int i;
- if (irn_visited(block))
+ if (irn_visited
_else_mark
(block))
return NULL;
return NULL;
- mark_irn_visited(block);
/* already have a defintion -> we can simply look at its mode */
value = block->attr.block.graph_arr[pos];
/* already have a defintion -> we can simply look at its mode */
value = block->attr.block.graph_arr[pos];