Skip to content

Commit b2668b9

Browse files
merge changes from upstream
1 parent 18217d3 commit b2668b9

File tree

6 files changed

+15
-12
lines changed

6 files changed

+15
-12
lines changed

Include/internal/pycore_opcode_metadata.h

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

Include/internal/pycore_uop_ids.h

Lines changed: 1 addition & 1 deletion
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: 4 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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1938,8 +1938,7 @@ def testfunc(n):
19381938
self.assertIsNotNone(ex)
19391939
uops = get_opnames(ex)
19401940
self.assertIn("_CALL_TUPLE_1", uops)
1941-
# Re-enable later gh-134584
1942-
# self.assertIn("_POP_TOP_NOP", uops)
1941+
self.assertIn("_POP_TOP_NOP", uops)
19431942

19441943
def test_call_str_1(self):
19451944
def testfunc(n):

Python/optimizer_bytecodes.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ dummy_func(void) {
10971097
}
10981098
}
10991099

1100-
op(_CALL_TUPLE_1, (callable, null, arg -- res)) {
1100+
op(_CALL_TUPLE_1, (callable, null, arg -- res, a)) {
11011101
if (sym_matches_type(arg, &PyTuple_Type)) {
11021102
// e.g. tuple((1, 2)) or tuple(foo) where foo is known to be a tuple
11031103
// Note: we must strip the reference information because it goes
@@ -1107,6 +1107,7 @@ dummy_func(void) {
11071107
else {
11081108
res = sym_new_type(ctx, &PyTuple_Type);
11091109
}
1110+
a = arg;
11101111
}
11111112

11121113
op(_GUARD_TOS_LIST, (tos -- tos)) {

Python/optimizer_cases.c.h

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

0 commit comments

Comments
 (0)