From cf19c5132a074195b61c3a09b9b61f99840744df Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Fri, 2 Jul 2010 22:44:21 -0700 Subject: Hey, what's a coding sprint without an uncovered register allocation bug? No fun, I say. --- src/boot/be/ra.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/boot/be/ra.ml b/src/boot/be/ra.ml index db70b21d..eb78ae2e 100644 --- a/src/boot/be/ra.ml +++ b/src/boot/be/ra.ml @@ -434,7 +434,8 @@ let reg_alloc then begin Hashtbl.remove dirty_vregs vreg; - if (Bits.get (live_out_vregs.(i)) vreg) + if (Bits.get (live_out_vregs.(i)) vreg) || + (Bits.get (live_in_vregs.(i)) vreg) then let spill_idx = if Hashtbl.mem vreg_to_spill vreg -- cgit v1.2.3