- Don't use morgan spiller as default until it is as stable as belady spiller
[libfirm] / ir / be / beinsn.c
index f26ba05..136cecb 100644 (file)
@@ -5,6 +5,7 @@
 
 #include "besched_t.h"
 #include "beinsn_t.h"
+#include "beabi.h"
 
 be_insn_t *be_scan_insn(const be_insn_env_t *env, ir_node *irn)
 {
@@ -96,11 +97,12 @@ be_insn_t *be_scan_insn(const be_insn_env_t *env, ir_node *irn)
        return insn;
 }
 
-be_insn_env_t *be_insn_env_init(be_insn_env_t *ie, be_irg_t *birg, const arch_register_class_t *cls, struct obstack *obst)
+be_insn_env_t *be_insn_env_init(be_insn_env_t *ie, const be_irg_t *birg, const arch_register_class_t *cls, struct obstack *obst)
 {
        ie->aenv = birg->main_env->arch_env;
        ie->cls  = cls;
        ie->obst = obst;
+       ie->ignore_colors = bitset_obstack_alloc(obst, cls->n_regs);
        be_abi_put_ignore_regs(birg->abi, cls, ie->ignore_colors);
        return ie;
 }