/*
- * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
* @date 27.06.2005
* @version $Id$
*/
-#ifdef HAVE_CONFIG_H
#include "config.h"
-#endif
#include <limits.h>
#include <stdlib.h>
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
+ return 0;
foreach_block_succ(block, edge) {
succ_block = get_edge_src_irn(edge);
return 0;
}
-static INLINE
+static inline
unsigned get_step(const ir_node *node)
{
return PTR_TO_INT(get_irn_link(node));
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)
{
- be_uses_t *env = xmalloc(sizeof(env[0]));
+ be_uses_t *env = XMALLOC(be_uses_t);
edges_assure(irg);