Re: [PATCH 3/3] spill-reload: Use radix_tree_lookup() in insert_mov_insns()

2009-08-18 Thread Pekka Enberg
Hi Tomek, On Tue, 2009-08-18 at 21:21 +0200, Tomek Grabiec wrote: > Like I said on IRC, this will not work for empty basic blocks, because > spill_at_insn will belong to the preceding > basic block. This causes that instructions will be added to different > (preceding) basic block and might not be

Re: [PATCH 3/3] spill-reload: Use radix_tree_lookup() in insert_mov_insns()

2009-08-18 Thread Pekka Enberg
On Tue, 2009-08-18 at 21:21 +0200, Tomek Grabiec wrote: > Like I said on IRC, this will not work for empty basic blocks, because > spill_at_insn will belong to the preceding > basic block. This causes that instructions will be added to different > (preceding) basic block and might not be executed o

[penberg/jato] c8806a: linear-scan: Fix range end checks

2009-08-18 Thread noreply
Branch: refs/heads/master Home: http://github.com/penberg/jato Commit: c8806ae78694b74be3c32aeae0fe4a7a2463ab84 http://github.com/penberg/jato/commit/c8806ae78694b74be3c32aeae0fe4a7a2463ab84 Author: Pekka Enberg Date: 2009-08-17 (Mon, 17 Aug 2009) Changed paths: M jit/linear-scan.c L

Re: [PATCH 3/3] spill-reload: Use radix_tree_lookup() in insert_mov_insns()

2009-08-18 Thread Tomek Grabiec
2009/8/18 Pekka Enberg : > Lets use radix_tree_lookup() and get rid of the nasty loop in > bb_last_insn(). For some reason, this seems to fix the infinite loop > triggered by empty basic blocks. > > Cc: Arthur HUILLET > Cc: Tomek Grabiec > Signed-off-by: Pekka Enberg > --- >  jit/basic-block.c  

[PATCH 1/3] spill-reload: Insert spill instructions before branches

2009-08-18 Thread Pekka Enberg
Use insn_is_branch() to determine whether we must insert a spill instruction before or after the last instruction in a basic block. Cc: Arthur HUILLET Cc: Tomek Grabiec Signed-off-by: Pekka Enberg --- arch/mmix/include/arch/instruction.h |5 + arch/x86/include/arch/instruction.h | 1

[PATCH 3/3] spill-reload: Use radix_tree_lookup() in insert_mov_insns()

2009-08-18 Thread Pekka Enberg
Lets use radix_tree_lookup() and get rid of the nasty loop in bb_last_insn(). For some reason, this seems to fix the infinite loop triggered by empty basic blocks. Cc: Arthur HUILLET Cc: Tomek Grabiec Signed-off-by: Pekka Enberg --- jit/basic-block.c | 16 +--- jit/spill-reload.

[PATCH 2/3] spill-reload: Remove redundant argument from insert_copy_slot_insn()

2009-08-18 Thread Pekka Enberg
The 'pop_at_insn' argument is not used in insert_copy_slot_insn() function so remove it to clean up code. Cc: Arthur HUILLET Cc: Tomek Grabiec Signed-off-by: Pekka Enberg --- jit/spill-reload.c | 13 + 1 files changed, 5 insertions(+), 8 deletions(-) diff --git a/jit/spill-reloa

Re: [PATCH 3/3] spill-reload: Use radix_tree_lookup() in insert_mov_insns()

2009-08-18 Thread Arthur Huillet
Ack here as well, this is obviously correct (provided radix_tree_lookup() works). On Tue, 18 Aug 2009 21:41:19 +0300 Pekka Enberg wrote: > Lets use radix_tree_lookup() and get rid of the nasty loop in > bb_last_insn(). For some reason, this seems to fix the infinite loop > triggered by empty ba

Re: [PATCH] vm: introduce per vm_class access flags.

2009-08-18 Thread Vegard Nossum
2009/8/17 Tomek Grabiec : > 2009/8/17 Vegard Nossum : >> BTW, which flags are those? >> > > My patch sets flags the same way as jamvm (and hotspot) does: > - for primitive types: ACC_PUBLIC + ACC_ABSTRACT + ACC_FINAL > - for array types: ACC_ABSTRACT + ACC_FINAL + (flags for element class > - ACC_I