8000 GH-129715: Remove _DYNAMIC_EXIT (GH-129716) · python/cpython@5fa7e1b · GitHub
[go: up one dir, main page]

Skip to content

Commit 5fa7e1b

Browse files
authored
GH-129715: Remove _DYNAMIC_EXIT (GH-129716)
1 parent e4a00f7 commit 5fa7e1b

File tree

13 files changed

+138
-226
lines changed

13 files changed

+138
-226
lines changed

Include/cpython/pystats.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ typedef struct _optimization_stats {
129129
uint64_t inner_loop;
130130
uint64_t recursive_call;
131131
uint64_t low_confidence;
132+
uint64_t unknown_callee;
132133
uint64_t executors_invalidated;
133134
UOpStats opcode[PYSTATS_MAX_UOP_ID + 1];
134135
uint64_t unsupported_opcode[256];

Include/internal/pycore_optimizer.h

Lines changed: 1 addition & 2 deletions
< 8000 td data-grid-cell-id="diff-04d62d99f4a2b418ae2fd0eecece5b153dee4ac843c706a8de03c45a2d65efcc-293-292-1" data-selected="false" role="gridcell" style="background-color:var(--diffBlob-additionNum-bgColor, var(--diffBlob-addition-bgColor-num));text-align:center" tabindex="-1" valign="top" class="focusable-grid-cell diff-line-number position-relative left-side">292
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,7 @@ static inline int is_terminator(const _PyUOpInstruction *uop)
289289
int opcode = uop->opcode;
290290
return (
291291
opcode == _EXIT_TRACE ||
292-
opcode == _JUMP_TO_TOP ||
293-
opcode == _DYNAMIC_EXIT
+
opcode == _JUMP_TO_TOP
294293
);
295294
}
296295

Include/internal/pycore_uop_ids.h

Lines changed: 123 additions & 124 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_uop_metadata.h

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Lib/test/test_capi/test_opt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,7 @@ def testfunc(n):
11601160
self.assertIsNotNone(ex)
11611161
self.assertIn("_RETURN_GENERATOR", get_opnames(ex))
11621162

1163+
@unittest.skip("Tracing into generators currently isn't supported.")
11631164
def test_for_iter_gen(self):
11641165
def gen(n):
11651166
for i in range(n):
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Improve JIT performance for generators.

0 commit comments

Comments
 (0)
0