Signed-off-by: Arthur HUILLET <[email protected]>
---
 jit/trace-jit.c |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/jit/trace-jit.c b/jit/trace-jit.c
index ca69da9..2e2236d 100644
--- a/jit/trace-jit.c
+++ b/jit/trace-jit.c
@@ -133,14 +133,21 @@ void trace_liveness(struct compilation_unit *cu)
                offset = 0;
                for_each_basic_block(bb, &cu->bb_list) {
                        for_each_insn(insn, &bb->insn_list) {
-                               if (in_range(range, offset++)) {
-                                       if (var->interval->reg == 
REG_UNASSIGNED)
-                                               printf("***");
-                                       else
-                                               printf("---");
+                               if (in_range(range, offset)) {
+                                       if (next_use_pos(var->interval, offset) 
== offset) {
+                                               /* In use */
+                                               printf("UUU");
+                                       } else {
+                                               if (var->interval->reg == 
REG_UNASSIGNED)
+                                                       printf("***");
+                                               else
+                                                       printf("---");
+                                       }
                                }
                                else
                                        printf("   ");
+
+                               offset++;
                        }
                }
                if (!range_is_empty(range))
-- 
1.6.2.2


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Jatovm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to