Skip to content

Commit 9fbec75

Browse files
fix a bug
1 parent 1364159 commit 9fbec75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Include/internal/pycore_optimizer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ extern "C" {
4949
* N_BACKWARD_SLACK more bytecodes before reaching EXIT_QUALITY_CLOSE_LOOP,
5050
* based on AVG_SLOTS_PER_INSTRUCTION. */
5151
#define N_BACKWARD_SLACK 50
52-
#define FITNESS_BACKWARD_EDGE (FITNESS_INITIAL - EXIT_QUALITY_CLOSE_LOOP \
52+
#define FITNESS_BACKWARD_EDGE (FITNESS_INITIAL/2 \
5353
- N_BACKWARD_SLACK * AVG_SLOTS_PER_INSTRUCTION)
5454

5555
/* Backward edge penalty for JUMP_BACKWARD_NO_INTERRUPT (coroutines/yield-from).

0 commit comments

Comments
 (0)