projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make fehler159 compilable.
[libfirm]
/
ir
/
be
/
beuses.c
diff --git
a/ir/be/beuses.c
b/ir/be/beuses.c
index
aa97898
..
61172aa
100644
(file)
--- a/
ir/be/beuses.c
+++ b/
ir/be/beuses.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.
*
@@
-126,10
+126,12
@@
static int be_is_phi_argument(const ir_node *block, const ir_node *def)
const ir_edge_t *edge;
int arity, i;
const ir_edge_t *edge;
int arity, i;
-#if 0
- if(get_irn_n_edges_kind(block, EDGE_KIND_BLOCK) > 1)
- return 0;
+#if 1
+ if (get_irn_n_edges_kind(block, EDGE_KIND_BLOCK) < 1)
+#else
+ if (get_irn_n_edges_kind(block, EDGE_KIND_BLOCK) != 1)
#endif
#endif
+ return 0;
foreach_block_succ(block, edge) {
succ_block = get_edge_src_irn(edge);
foreach_block_succ(block, edge) {
succ_block = get_edge_src_irn(edge);
@@
-284,6
+286,7
@@
static be_next_use_t get_next_use(be_uses_t *env, ir_node *from,
ir_graph *irg = get_irn_irg(block);
ir_node *startblock = get_irg_start_block(irg);
ir_graph *irg = get_irn_irg(block);
ir_node *startblock = get_irg_start_block(irg);
+ result.before = NULL;
outermost_loop = loopdepth;
foreach_block_succ(block, edge) {
const be_use_t *use;
outermost_loop = loopdepth;
foreach_block_succ(block, edge) {
const be_use_t *use;
@@
-367,15
+370,13
@@
void set_sched_step_walker(ir_node *block, void *data)
set_irn_link(node, INT_TO_PTR(step));
if(is_Phi(node))
continue;
set_irn_link(node, INT_TO_PTR(step));
if(is_Phi(node))
continue;
- if(is_Proj(node))
- continue;
++step;
}
}
be_uses_t *be_begin_uses(ir_graph *irg, const be_lv_t *lv)
{
++step;
}
}
be_uses_t *be_begin_uses(ir_graph *irg, const be_lv_t *lv)
{
- be_uses_t *env =
xmalloc(sizeof(env[0])
);
+ be_uses_t *env =
XMALLOC(be_uses_t
);
edges_assure(irg);
edges_assure(irg);