/*
- * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-2011 University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
be_lv_t *lv;
double insn_count;
double regpressure;
- int max_pressure;
+ size_t max_pressure;
const arch_register_class_t *cls;
};
ir_graph *irg = env->irg;
ir_node *irn;
ir_nodeset_t live_nodes;
- int max_live;
+ size_t max_live;
ir_nodeset_init(&live_nodes);
be_liveness_end_of_block(env->lv, cls, block, &live_nodes);
env->regpressure += max_live;
sched_foreach_reverse(block, irn) {
- int cnt;
+ size_t cnt;
if (is_Phi(irn))
break;
if (max_live > env->max_pressure)
env->max_pressure = max_live;
-#ifdef FIRM_STATISTICS
stat_be_block_regpressure(irg, block, max_live, cls->name);
-#endif
ir_nodeset_destroy(&live_nodes);
}