* @date 06.12.2004
* @version $Id$
*/
-#ifdef HAVE_CONFIG_H
#include "config.h"
-#endif
/* statev is expensive here, only enable when needed */
#define DISABLE_STATEV
-void be_liveness_end_of_block(const be_lv_t *lv, const arch_env_t *arch_env,
+void be_liveness_end_of_block(const be_lv_t *lv,
const arch_register_class_t *cls,
const ir_node *block, ir_nodeset_t *live)
{
int i;
- (void)arch_env; // TODO remove parameter
assert(lv->nodes && "live sets must be computed");
be_lv_foreach(lv, block, be_lv_state_end, i) {
-void be_liveness_nodes_live_at(const be_lv_t *lv, const arch_env_t *arch_env,
+void be_liveness_nodes_live_at(const be_lv_t *lv,
const arch_register_class_t *cls,
const ir_node *pos, ir_nodeset_t *live)
{
const ir_node *bl = is_Block(pos) ? pos : get_nodes_block(pos);
ir_node *irn;
- be_liveness_end_of_block(lv, arch_env, cls, bl, live);
+ be_liveness_end_of_block(lv, cls, bl, live);
sched_foreach_reverse(bl, irn) {
/*
* If we encounter the node we want to insert the Perm after,
}
}
-void be_liveness_nodes_live_at_input(const be_lv_t *lv,
- const arch_env_t *arch_env,
- const arch_register_class_t *cls,
- const ir_node *pos, ir_nodeset_t *live)
-{
- const ir_node *bl = is_Block(pos) ? pos : get_nodes_block(pos);
- ir_node *irn;
-
- assert(lv->nodes && "live sets must be computed");
- be_liveness_end_of_block(lv, arch_env, cls, bl, live);
- sched_foreach_reverse(bl, irn) {
- be_liveness_transfer(cls, irn, live);
- if(irn == pos)
- return;
- }
-}
-
static void collect_node(ir_node *irn, void *data)
{
struct obstack *obst = data;