* @brief Copy node statistics.
* @author Daniel Grund
* @date 19.04.2005
- * @version $Id$
*/
#include "config.h"
#include "beutil.h"
#include "becopyopt_t.h"
#include "becopystat.h"
-#include "beirg.h"
#include "bemodule.h"
#include "beintlive_t.h"
/**
* Holds current values. Values are added till next copystat_reset
*/
-int curr_vals[ASIZE];
+static int curr_vals[ASIZE];
static ir_nodeset_t *all_phi_nodes;
static ir_nodeset_t *all_copy_nodes;
{
const ir_edge_t *edge;
const ir_node *bl_at_pos, *bl_before;
- assert(is_Block(bl));
/* Does bl have several predecessors ?*/
- if (get_irn_arity(bl) <= 1)
+ if (get_Block_n_cfgpreds(bl) <= 1)
return 0;
/* Does the pred have exactly one predecessor */