diff options
author | Mark Shannon <mark@hotpy.org> | 2020-07-30 09:03:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-30 09:03:00 (GMT) |
commit | 6e8128f02e1d36e38e5866f9dc36e051caa47bc9 (patch) | |
tree | 69cb790e96057a35333a9a2de94934d9ab3aab9d /Lib/test/test_dis.py | |
parent | ba18c0b13ba3c08077ea3db6658328523823a33f (diff) | |
download | cpython-6e8128f02e1d36e38e5866f9dc36e051caa47bc9.zip cpython-6e8128f02e1d36e38e5866f9dc36e051caa47bc9.tar.gz cpython-6e8128f02e1d36e38e5866f9dc36e051caa47bc9.tar.bz2 |
bpo-41323: Perform 'peephole' optimizations directly on the CFG. (GH-21517)
* Move 'peephole' optimizations into compile.c and perform them directly on the CFG.
Diffstat (limited to 'Lib/test/test_dis.py')
-rw-r--r-- | Lib/test/test_dis.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/test/test_dis.py b/Lib/test/test_dis.py index ac5836d..4533a01 100644 --- a/Lib/test/test_dis.py +++ b/Lib/test/test_dis.py @@ -360,8 +360,6 @@ dis_tryfinally = """\ 16 CALL_FUNCTION 0 18 POP_TOP 20 RERAISE - 22 LOAD_CONST 0 (None) - 24 RETURN_VALUE """ % (_tryfinally.__code__.co_firstlineno + 1, _tryfinally.__code__.co_firstlineno + 2, _tryfinally.__code__.co_firstlineno + 4, @@ -385,8 +383,6 @@ dis_tryfinallyconst = """\ 16 CALL_FUNCTION 0 18 POP_TOP 20 RERAISE - 22 LOAD_CONST 0 (None) - 24 RETURN_VALUE """ % (_tryfinallyconst.__code__.co_firstlineno + 1, _tryfinallyconst.__code__.co_firstlineno + 2, _tryfinallyconst.__code__.co_firstlineno + 4, |