gh-104635: Eliminate redundant STORE_FAST instructions in the compiler (gh-105320)

This commit is contained in:
Dong-hee Na 2023-06-08 08:39:56 +09:00 committed by GitHub
parent ffeaec7e60
commit aa5b762bd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 58 additions and 10 deletions

View file

@ -808,8 +808,9 @@ dis_extended_arg_quick_code = """\
%3d 2 LOAD_CONST 1 (Ellipsis)
4 EXTENDED_ARG 1
6 UNPACK_EX 256
8 STORE_FAST_STORE_FAST 0 (_, _)
10 RETURN_CONST 0 (None)
8 POP_TOP
10 STORE_FAST 0 (_)
12 RETURN_CONST 0 (None)
"""% (extended_arg_quick.__code__.co_firstlineno,
extended_arg_quick.__code__.co_firstlineno + 1,)