Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
61b68eb9
Commit
61b68eb9
authored
May 24, 2015
by
Matthias Braun
Browse files
beprefalloc: fix problems with the now enable localopts
parent
3e79d08e
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/beprefalloc.c
View file @
61b68eb9
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment