<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python/peephole.c, branch 3.8</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/peephole.c?h=3.8</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/peephole.c?h=3.8'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2019-08-27T17:13:52Z</updated>
<entry>
<title>Fix unused variable and signed/unsigned warnings (GH-15537) (GH-15551)</title>
<updated>2019-08-27T17:13:52Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2019-08-27T17:13:52Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d5ba8bbdae9a59c10c1275f71415732d68fe9661'/>
<id>urn:sha1:d5ba8bbdae9a59c10c1275f71415732d68fe9661</id>
<content type='text'>
(cherry picked from commit 0138c4ceab1e10d42d0aa962d2ae079b46da7671)

Co-authored-by: Raymond Hettinger &lt;rhettinger@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>bpo-37289: Remove 'if False' handling in the peephole optimizer (GH-14099) (GH-14112)</title>
<updated>2019-06-15T15:22:08Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2019-06-15T15:22:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=284daeade210d3aac049f4278a1fb76d19e6d78a'/>
<id>urn:sha1:284daeade210d3aac049f4278a1fb76d19e6d78a</id>
<content type='text'>
(cherry picked from commit 7a68f8c28bb78d957555a5001dac4df6345434a0)

Co-authored-by: Pablo Galindo &lt;Pablogsal@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-37269: Correctly optimise conditionals with constant booleans (GH-14071)</title>
<updated>2019-06-14T06:13:24Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2019-06-14T06:13:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7cd581a6bf82309b3c9b9251c54067d442732485'/>
<id>urn:sha1:7cd581a6bf82309b3c9b9251c54067d442732485</id>
<content type='text'>
Fix a regression introduced by af8646c8054d0f4180a2013383039b6a472f9698 that was causing code of the form:

if True and False:
   do_something()

to be optimized incorrectly, eliminating the block.
(cherry picked from commit 05f831865545b08c9a21cfb7773af58b76ec64cb)

Co-authored-by: Pablo Galindo &lt;Pablogsal@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-37213: Handle negative line deltas correctly in the peephole optimizer (GH-13969)</title>
<updated>2019-06-13T18:35:40Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2019-06-13T18:35:40Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5282b3b1d2e0bdf13899b1616aea20a6e3c4e13e'/>
<id>urn:sha1:5282b3b1d2e0bdf13899b1616aea20a6e3c4e13e</id>
<content type='text'>
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.
(cherry picked from commit 3498c642f4e83f3d8e2214654c0fa8e0d51cebe5)

Co-authored-by: Pablo Galindo &lt;Pablogsal@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-1875: Raise SyntaxError in invalid blocks that will be optimised away (GH-13332)</title>
<updated>2019-05-17T10:37:08Z</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2019-05-17T10:37:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=af8646c8054d0f4180a2013383039b6a472f9698'/>
<id>urn:sha1:af8646c8054d0f4180a2013383039b6a472f9698</id>
<content type='text'>
Move the check for dead conditionals (if 0) to the peephole optimizer
and make sure that the code block is still compiled to report any
existing syntax errors within.</content>
</entry>
<entry>
<title>bpo-9566: Fix compiler warnings in peephole.c (GH-10652)</title>
<updated>2018-12-07T16:54:18Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-12-07T16:54:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=028f0ef4f3111d2b3fc5b971642e337ba7990873'/>
<id>urn:sha1:028f0ef4f3111d2b3fc5b971642e337ba7990873</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-35193: Fix an off by one error in the RETURN_VALUE case. (GH-10418)</title>
<updated>2018-11-09T01:55:07Z</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@krypto.org</email>
</author>
<published>2018-11-09T01:55:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=49fa4a9f1ef387e16596f271414c855339eadf09'/>
<id>urn:sha1:49fa4a9f1ef387e16596f271414c855339eadf09</id>
<content type='text'>
Fix an off by one error in the peephole optimizer when checking for unreachable code beyond a return.

Do a bounds check within find_op so it can return before going past the end as a safety measure.

https://github.com/python/cpython/commit/7db3c488335168993689ddae5914a28e16188447#diff-a33329ae6ae0bb295d742f0caf93c137
introduced this off by one error while fixing another one nearby.

This bug was shipped in all Python 3.6 and 3.7 releases.

The included unittest won't fail unless you do a clang msan build.</content>
</entry>
<entry>
<title>bpo-17611. Move unwinding of stack for "pseudo exceptions" from interpreter to compiler. (GH-5006)</title>
<updated>2018-02-22T21:33:30Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2018-02-22T21:33:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=520b7ae27e39d1c77ea74ccd1b184d7cb43f9dcb'/>
<id>urn:sha1:520b7ae27e39d1c77ea74ccd1b184d7cb43f9dcb</id>
<content type='text'>


Co-authored-by: Mark Shannon &lt;mark@hotpy.org&gt;
Co-authored-by: Antoine Pitrou &lt;antoine@python.org&gt;
</content>
</entry>
<entry>
<title>bpo-29469: peephole: Remove const_stack (GH-4879)</title>
<updated>2017-12-18T06:52:54Z</updated>
<author>
<name>INADA Naoki</name>
<email>methane@users.noreply.github.com</email>
</author>
<published>2017-12-18T06:52:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=87010e85cb37192d63b1a30e5fabba307ad5a3f5'/>
<id>urn:sha1:87010e85cb37192d63b1a30e5fabba307ad5a3f5</id>
<content type='text'>
Constant folding was moved to AST optimizer.
But compiler may emit LOAD_CONSTs + BUILD_TUPLE.
For example, default arguments can be constant tuple
if all arguments are constant.

This commit makes peephole's tuple folding simple.
It doesn't support nested tuples because nested
tuples are folded by AST optimizer already.</content>
</entry>
<entry>
<title>bpo-29469: Optimize literal lists and sets iterating on the AST level. (#4866)</title>
<updated>2017-12-14T18:24:31Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-12-14T18:24:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=15a8728415e765f57e37f431f09e5c5821a04063'/>
<id>urn:sha1:15a8728415e765f57e37f431f09e5c5821a04063</id>
<content type='text'>
</content>
</entry>
</feed>
