Skip to content

Commit 1730295

Browse files
committed
Use the right named constant in initial temperature
1 parent 015bb00 commit 1730295

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/optimizer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@ make_executor_from_uops(_PyUOpInstruction *buffer, int length, const _PyBloomFil
11091109
for (int i = 0; i < exit_count; i++) {
11101110
executor->exits[i].executor = &COLD_EXITS[i];
11111111
executor->exits[i].temperature =
1112-
adaptive_counter_bits(interp->optimizer_side_threshold, 4); // TODO: Constantify
1112+
adaptive_counter_bits(interp->optimizer_side_threshold, MIN_TIER2_BACKOFF);
11131113
}
11141114
int next_exit = exit_count-1;
11151115
_PyUOpInstruction *dest = (_PyUOpInstruction *)&executor->trace[length];

0 commit comments

Comments
 (0)