summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beprefalloc.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-05-17 10:04:11 +0200
committerMatthias Braun <matze@braunis.de>2015-05-24 09:50:48 +0200
commit1dff67d719b5df22d9256eed8575a6c811cf5eeb (patch)
treebb8f2b224d830fff03be26cad9250f978dedb0b5 /ir/be/beprefalloc.c
parent25a408666e870091e577a041d1f92ac9badccb40 (diff)
be: Move spillprepare steps to the register allocators
Diffstat (limited to 'ir/be/beprefalloc.c')
-rw-r--r--ir/be/beprefalloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ir/be/beprefalloc.c b/ir/be/beprefalloc.c
index 16731b5..6161a61 100644
--- a/ir/be/beprefalloc.c
+++ b/ir/be/beprefalloc.c
@@ -1812,9 +1812,10 @@ static void spill(void)
*/
static void be_pref_alloc(ir_graph *new_irg)
{
+ irg = new_irg;
obstack_init(&obst);
- irg = new_irg;
+ be_spill_prepare_for_constraints(irg);
/* determine a good coloring order */
determine_block_order();