From f4b3aca19feb85e9e39856fa5f71eb73274e598f Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Thu, 3 Sep 2009 14:45:30 +0000 Subject: [PATCH] improve hack to also work when the value has been 'permed' [r26478] --- ir/be/benewalloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ir/be/benewalloc.c b/ir/be/benewalloc.c index ac6b415e3..906ee3407 100644 --- a/ir/be/benewalloc.c +++ b/ir/be/benewalloc.c @@ -562,7 +562,7 @@ static bool try_optimistic_split(ir_node *to_split, ir_node *before, unsigned *output_regs) { const arch_register_t *reg; - ir_node *insn; + ir_node *original_insn; ir_node *block; ir_node *copy; unsigned r; @@ -576,8 +576,8 @@ static bool try_optimistic_split(ir_node *to_split, ir_node *before, /* stupid hack: don't optimisticallt split don't spill nodes... * (so we don't split away the values produced because of * must_be_different constraints) */ - insn = skip_Proj(to_split); - if (arch_irn_get_flags(insn) & arch_irn_flags_dont_spill) + original_insn = skip_Proj(info->original_value); + if (arch_irn_get_flags(original_insn) & arch_irn_flags_dont_spill) return false; /* find the best free position where we could move to */ -- 2.20.1