소스 검색

Tweak favor-loops initial temperature computation

jonathanvdc 8 년 전
부모
커밋
c2826fbb19
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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