diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2019-06-13 18:16:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-13 18:16:22 (GMT) |
commit | 3498c642f4e83f3d8e2214654c0fa8e0d51cebe5 (patch) | |
tree | 07d51da51f406a38f216a877838af3902b1161f0 /Misc | |
parent | 95492032c48fef20b9c7076a23fe7e46927a4688 (diff) | |
download | cpython-3498c642f4e83f3d8e2214654c0fa8e0d51cebe5.zip cpython-3498c642f4e83f3d8e2214654c0fa8e0d51cebe5.tar.gz cpython-3498c642f4e83f3d8e2214654c0fa8e0d51cebe5.tar.bz2 |
bpo-37213: Handle negative line deltas correctly in the peephole optimizer (GH-13969)
The peephole optimizer was not optimizing correctly bytecode after negative deltas were introduced. This is due to the fact that some special values (255) were being searched for in both instruction pointer delta and line number deltas.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2019-06-11-11-15-19.bpo-37213.UPii5K.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-06-11-11-15-19.bpo-37213.UPii5K.rst b/Misc/NEWS.d/next/Core and Builtins/2019-06-11-11-15-19.bpo-37213.UPii5K.rst new file mode 100644 index 0000000..b949883 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2019-06-11-11-15-19.bpo-37213.UPii5K.rst @@ -0,0 +1,2 @@ +Handle correctly negative line offsets in the peephole optimizer. Patch by +Pablo Galindo. |