<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python/peephole.c, branch v3.7.2</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=v3.7.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/peephole.c?h=v3.7.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2018-11-09T02:13:14Z</updated>
<entry>
<title>bpo-35193: Fix an off by one error in the RETURN_VALUE case. (GH-10418)</title>
<updated>2018-11-09T02:13:14Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-11-09T02:13:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f16ebcd460aaeb8d6b31db317d22f5ed68afbcc8'/>
<id>urn:sha1:f16ebcd460aaeb8d6b31db317d22f5ed68afbcc8</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/7db3c488335168993689ddae5914a28e16188447GH-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.
(cherry picked from commit 49fa4a9f1ef387e16596f271414c855339eadf09)

Co-authored-by: Gregory P. Smith &lt;greg@krypto.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>
<entry>
<title>bpo-29469: Remove unnecessary peephole optimizer (GH-4863)</title>
<updated>2017-12-14T13:18:26Z</updated>
<author>
<name>INADA Naoki</name>
<email>methane@users.noreply.github.com</email>
</author>
<published>2017-12-14T13:18:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=eadad1b97f64619bfd246b9d3b60d25f456e0592'/>
<id>urn:sha1:eadad1b97f64619bfd246b9d3b60d25f456e0592</id>
<content type='text'>
Conversions like `not a is b -&gt; a is not b` are implemented
in AST optimizer in previous commit (7ea143a).
So this commit removes them from peephole optimizer.</content>
</entry>
<entry>
<title>bpo-29469: Move constant folding to AST optimizer (GH-2858)</title>
<updated>2017-12-14T07:47:20Z</updated>
<author>
<name>INADA Naoki</name>
<email>methane@users.noreply.github.com</email>
</author>
<published>2017-12-14T07:47:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7ea143ae795a9fd57eaccf490d316bdc13ee9065'/>
<id>urn:sha1:7ea143ae795a9fd57eaccf490d316bdc13ee9065</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-30501: Make the compiler producing optimized code for condition expressions. (#1851)</title>
<updated>2017-06-11T11:50:22Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-06-11T11:50:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=36ff451ebae41f09560bff582c95946474d898f8'/>
<id>urn:sha1:36ff451ebae41f09560bff582c95946474d898f8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #28517: Fixed of-by-one error in the peephole optimizer that caused</title>
<updated>2016-10-25T06:30:43Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2016-10-25T06:30:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7db3c488335168993689ddae5914a28e16188447'/>
<id>urn:sha1:7db3c488335168993689ddae5914a28e16188447</id>
<content type='text'>
keeping unreachable code.
</content>
</entry>
<entry>
<title>Fixed refactoring bug in dd046963bd42 (issue27129).</title>
<updated>2016-09-11T12:19:12Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2016-09-11T12:19:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a1e9ab34a9cfe335af1b34287cdda6743c53487d'/>
<id>urn:sha1:a1e9ab34a9cfe335af1b34287cdda6743c53487d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #27129: Replaced wordcode related magic constants with macros.</title>
<updated>2016-09-11T10:48:15Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2016-09-11T10:48:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ab8740058a7f76f1438dc18a2ffd918da4f8118d'/>
<id>urn:sha1:ab8740058a7f76f1438dc18a2ffd918da4f8118d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Re-linewrap comments</title>
<updated>2016-08-08T03:20:33Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2016-08-08T03:20:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=08eef3ff49e3696773a310e4e7f474b978535b23'/>
<id>urn:sha1:08eef3ff49e3696773a310e4e7f474b978535b23</id>
<content type='text'>
</content>
</entry>
</feed>
