[PATCH] jit: fix liveness analysis

2009-08-03 Thread Vegard Nossum
All registers that were defined in the basic block were subtracted from the use set. This is right if the order is "define, use", but it's wrong if the order is "use, define". Fix this by checking if the register has already been used/defined. Signed-off-by: Vegard Nossum --- jit/liveness.c

Re: [PATCH] jit: fix liveness analysis

2009-08-01 Thread Pekka Enberg
On Fri, 2009-07-31 at 18:12 +0200, Vegard Nossum wrote: > All registers that were defined in the basic block were subtracted from the > use set. This is right if the order is "define, use", but it's wrong if the > order is "use, define". Fix this by checking if the register has already > been used/

Re: [PATCH] jit: fix liveness analysis

2009-08-01 Thread Pekka Enberg
Hi Vegard, On Fri, 2009-07-31 at 18:12 +0200, Vegard Nossum wrote: > All registers that were defined in the basic block were subtracted from the > use set. This is right if the order is "define, use", but it's wrong if the > order is "use, define". Fix this by checking if the register has already

[PATCH] jit: fix liveness analysis

2009-07-31 Thread Vegard Nossum
All registers that were defined in the basic block were subtracted from the use set. This is right if the order is "define, use", but it's wrong if the order is "use, define". Fix this by checking if the register has already been used/defined. Signed-off-by: Vegard Nossum --- jit/liveness.c |