Browse Source

Tweak favor-loops initial temperature computation

jonathanvdc 8 years ago
parent
commit
c2826fbb19
1 changed files with 1 additions and 1 deletions
  1. 1 1
      kernel/modelverse_jit/jit.py

+ 1 - 1
kernel/modelverse_jit/jit.py

@@ -839,7 +839,7 @@ def favor_loops(body_bytecode):
        temperature is incremented by one on every call."""
     reachable_instructions = body_bytecode.get_reachable()
     # First set the temperature to the negative number of instructions.
-    temperature = ADAPTIVE_FAST_JIT_TEMPERATURE_THRESHOLD - len(reachable_instructions)
+    temperature = ADAPTIVE_BASELINE_JIT_TEMPERATURE_THRESHOLD - len(reachable_instructions)
     for instruction in reachable_instructions:
         if isinstance(instruction, bytecode_ir.WhileInstruction):
             # Then increase the temperature by the number of instructions reachable