projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added is_End function
[libfirm]
/
ir
/
opt
/
gvn_pre.c
diff --git
a/ir/opt/gvn_pre.c
b/ir/opt/gvn_pre.c
index
53b8245
..
5687189
100644
(file)
--- a/
ir/opt/gvn_pre.c
+++ b/
ir/opt/gvn_pre.c
@@
-130,13
+130,16
@@
static int node_set_count(node_set *set) {
return pset_count(set);
}
return pset_count(set);
}
+#if 0
/** computes dst = dst \/ src for node sets */
static void node_union(node_set *dst, node_set *src)
{
ir_node *entry;
/** computes dst = dst \/ src for node sets */
static void node_union(node_set *dst, node_set *src)
{
ir_node *entry;
- node_set_foreach(entry, src)
+ node_set_foreach(entry, src)
{
node_add(dst, entry);
node_add(dst, entry);
+ }
}
}
+#endif
/**
* Lookup a node in a node set.
/**
* Lookup a node in a node set.
@@
-438,6
+441,7
@@
static ir_node *translate(ir_node *node, ir_node *block, int pos, pre_env *env)
return node;
}
return node;
}
+#if 0
/**
* Implements phi_translate.
*/
/**
* Implements phi_translate.
*/
@@
-459,6
+463,7
@@
static ir_node *deep_phi_translate(ir_node *node, ir_node *block, int pos, pre_e
return res;
} /* phi_translate */
return res;
} /* phi_translate */
+#endif
/**
* Implements phi_translate.
/**
* Implements phi_translate.
@@
-468,8
+473,6
@@
static ir_node *phi_translate(ir_node *node, ir_node *block, int pos, pre_env *e
ir_node *nn, *res;
int i, arity;
struct obstack *old;
ir_node *nn, *res;
int i, arity;
struct obstack *old;
- ir_node *pred_block = get_Block_cfgpred_block(block, pos);
- block_info *pred_info = get_block_info(pred_block);
if (is_Phi(node)) {
if (get_irn_intra_n(node, -1) == block)
if (is_Phi(node)) {
if (get_irn_intra_n(node, -1) == block)
@@
-696,6
+699,7
@@
static void compute_antic(ir_node *block, void *ctx)
}
// clean_node_set(info->antic_in, block);
}
// clean_node_set(info->antic_in, block);
+ (void) clean_node_set;
dump_node_set(info->antic_in, "Antic_in", block);
if (size != node_set_count(info->antic_in)) {
dump_node_set(info->antic_in, "Antic_in", block);
if (size != node_set_count(info->antic_in)) {