Commits

Remi Meier committed d3b179c

logging fixes: use the right loop number

Comments (0)

Files changed (2)

rpython/jit/backend/arm/assembler.py

 
         ops_offset = self.mc.ops_offset
         if logger is not None:
-            logger.log_loop(inputargs, operations, 0, "rewritten",
+            logger.log_loop(inputargs, operations, looptoken.number, "rewritten",
                             name=loopname, ops_offset=ops_offset)
         self.teardown()
 

rpython/jit/backend/x86/assembler.py

             looptoken._x86_ops_offset = ops_offset
         looptoken._ll_function_addr = rawstart
         if logger:
-            logger.log_loop(inputargs, operations, 0, "rewritten",
+            logger.log_loop(inputargs, operations, looptoken.number, "rewritten",
                             name=loopname, ops_offset=ops_offset)
 
         self.fixup_target_tokens(rawstart)