#include "iroptimize.h"
#include "firmstat.h"
#include "execfreq.h"
+#include "irprofile.h"
#include "bearch_t.h"
#include "be_t.h"
#include "beschedmris.h"
#include "bestat.h"
#include "beverify.h"
-#include "beprofile.h"
#include "be_dbgout.h"
#include "beirg_t.h"
/* set the current graph (this is important for several firm functions) */
current_ir_graph = irg;
+ be_sched_init_phase(irg);
+
/* reset the phi handler. */
be_phi_handler_reset(env.phi_handler);
#undef LC_EMIT_RA
#undef LC_EMIT
+ be_sched_free_phase(irg);
+
be_free_birg(birg);
/* switched off due to statistics (statistic module needs all irgs) */