Commit 61b68eb9 authored by Matthias Braun's avatar Matthias Braun
Browse files

beprefalloc: fix problems with the now enable localopts

parent 3e79d08e
......@@ -1812,6 +1812,11 @@ static void spill(void)
*/
static void be_pref_alloc(ir_graph *new_irg)
{
/* disable optimization callbacks as we cannot deal with same-input phis
* getting optimized away. */
int last_opt_state = get_optimize();
set_optimize(0);
irg = new_irg;
obstack_init(&obst);
......@@ -1858,6 +1863,8 @@ static void be_pref_alloc(ir_graph *new_irg)
free_block_order();
obstack_free(&obst, NULL);
set_optimize(last_opt_state);
}
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_pref_alloc)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment