#include "belive_t.h"
#include "beirg.h"
#include "bearch.h"
-#include "benode_t.h"
+#include "benode.h"
#include "besched.h"
#include "bera.h"
#include "beintlive_t.h"
if (rbitset_equal(req->limited, req2->limited, cls->n_regs))
continue;
-#if 0
- /* Matze: looks fishy to me disabled it for now */
- if (be_is_Copy(get_irn_n(insn->irn, a_op->pos)))
- continue;
-#endif
-
copy = be_new_Copy(cls, block, in);
stat_ev_int("constr_copy", 1);
memset(&env, 0, sizeof(env));
env.birg = birg;
env.cls = cls;
+
+ be_assure_liveness(birg);
+
irg_block_walk_graph(irg, pre_spill_prepare_constr_walker, NULL, &env);
}
void be_do_spill(be_irg_t *birg, const arch_register_class_t *cls)
{
assert(selected_spiller != NULL);
- if (selected_spiller != NULL) {
- selected_spiller->spill(birg, cls);
- }
+
+ selected_spiller->spill(birg, cls);
}
void be_init_spilloptions(void)