X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbemain.c;h=74f8294e32c16db909b5e41f5c1dfa0d30e23705;hb=40db13dafa724caf3f38f76539cf107cd4c1a376;hp=16e5dd9517060b87a15dcdb94ef8aa29e2acda7a;hpb=c10470321586f38dcb369087e19ca5614cfb3e8e;p=libfirm diff --git a/ir/be/bemain.c b/ir/be/bemain.c index 16e5dd951..74f8294e3 100644 --- a/ir/be/bemain.c +++ b/ir/be/bemain.c @@ -33,7 +33,7 @@ #include "obst.h" #include "bitset.h" - +#include "statev.h" #include "irprog.h" #include "irgopt.h" #include "irgraph.h" @@ -480,7 +480,6 @@ static void initialize_birg(be_irg_t *birg, ir_graph *irg, be_main_env_t *env) /* Ensure, that the ir_edges are computed. */ assure_edges(irg); - add_irg_constraints(irg, IR_GRAPH_CONSTRAINT_BACKEND); be_info_init_irg(irg); dump(DUMP_INITIAL, irg, "prepared"); @@ -495,7 +494,6 @@ static const char *get_timer_name(be_timer_id_t id) case T_CODEGEN: return "codegen"; case T_RA_PREPARATION: return "ra_preparation"; case T_SCHED: return "sched"; - case T_SPLIT: return "split"; case T_CONSTR: return "constr"; case T_FINISH: return "finish"; case T_EMIT: return "emit"; @@ -505,7 +503,6 @@ static const char *get_timer_name(be_timer_id_t id) case T_LIVE: return "live"; case T_EXECFREQ: return "execfreq"; case T_SSA_CONSTR: return "ssa_constr"; - case T_RA_PROLOG: return "ra_prolog"; case T_RA_EPILOG: return "ra_epilog"; case T_RA_CONSTR: return "ra_constr"; case T_RA_SPILL: return "ra_spill"; @@ -658,7 +655,8 @@ static void be_main_loop(FILE *file_handle, const char *cup_name) be_timer_pop(T_VERIFY); /* get a code generator for this graph. */ - arch_env->impl->init_graph(irg); + if (arch_env->impl->init_graph) + arch_env->impl->init_graph(irg); /* some transformations need to be done before abi introduce */ if (arch_env->impl->before_abi != NULL)