[PATCH 4/4] jit: fix bb_last_insn so it returns the last LIR instruction of the block

2009-07-24 Thread Arthur HUILLET
When a live interval ends at a basic block boundary and is spilled, the spill instruction will appear after the final jump of the basic block. In that case, bb_last_insn really ought to return the struct insn corresponding to the jump, not the spill instructions that have been added afterwards. Thi

[PATCH 2/4] jit: bug fixes in control flow resolution (regalloc)

2009-07-24 Thread Arthur HUILLET
Signed-off-by: Arthur HUILLET --- jit/spill-reload.c | 36 ++-- 1 files changed, 22 insertions(+), 14 deletions(-) diff --git a/jit/spill-reload.c b/jit/spill-reload.c index 8750dae..520e6d7 100644 --- a/jit/spill-reload.c +++ b/jit/spill-reload.c @@ -186,31 +18

[PATCH 3/4] jit: bugfix for control flow resolution when a live interval ends at a basic block boundary

2009-07-24 Thread Arthur HUILLET
Signed-off-by: Arthur HUILLET --- jit/spill-reload.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/jit/spill-reload.c b/jit/spill-reload.c index 520e6d7..61b97ff 100644 --- a/jit/spill-reload.c +++ b/jit/spill-reload.c @@ -196,7 +196,7 @@ static void insert_mov_insns(s

[PATCH 1/4] jit: add prev_child field to struct live_interval

2009-07-24 Thread Arthur HUILLET
We need that for the register allocator. Signed-off-by: Arthur HUILLET --- include/jit/vars.h |2 +- jit/interval.c |1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/include/jit/vars.h b/include/jit/vars.h index b567116..a697b1c 100644 --- a/include/jit/vars.h +++

Re: [PATCH] jit: fix control flow resolution in regalloc

2009-07-24 Thread Arthur Huillet
Hi, On Fri, 24 Jul 2009 22:44:15 +0200 Arthur HUILLET wrote: > Signed-off-by: Arthur HUILLET > --- > jit/spill-reload.c |4 ++-- > regression/jvm/RegisterAllocatorTortureTest.java |5 ++--- > 2 files changed, 4 insertions(+), 5 deletions(-) This is the pa

[PATCH] jit: fix control flow resolution in regalloc

2009-07-24 Thread Arthur HUILLET
Signed-off-by: Arthur HUILLET --- jit/spill-reload.c |4 ++-- regression/jvm/RegisterAllocatorTortureTest.java |5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/jit/spill-reload.c b/jit/spill-reload.c index 489cefe..8750dae 100644 --- a

[PATCH] regression: System.out.write(int) now works. Enable the test.

2009-07-24 Thread Arthur HUILLET
Signed-off-by: Arthur HUILLET --- regression/jvm/PrintTest.java |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/regression/jvm/PrintTest.java b/regression/jvm/PrintTest.java index d0789e6..6746a9b 100644 --- a/regression/jvm/PrintTest.java +++ b/regression/jvm/PrintTest.