<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/peephole.c, branch revert-10341-patch-7</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-9566: Fix compiler warnings in peephole.c (GH-10652)</title>
<updated>2018-12-07T16:54:18+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-12-07T16:54:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=028f0ef4f3111d2b3fc5b971642e337ba7990873'/>
<id>028f0ef4f3111d2b3fc5b971642e337ba7990873</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</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:07+00:00</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@krypto.org</email>
</author>
<published>2018-11-09T01:55:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=49fa4a9f1ef387e16596f271414c855339eadf09'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.</pre>
</div>
</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:30+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2018-02-22T21:33:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=520b7ae27e39d1c77ea74ccd1b184d7cb43f9dcb'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>


Co-authored-by: Mark Shannon &lt;mark@hotpy.org&gt;
Co-authored-by: Antoine Pitrou &lt;antoine@python.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-29469: peephole: Remove const_stack (GH-4879)</title>
<updated>2017-12-18T06:52:54+00:00</updated>
<author>
<name>INADA Naoki</name>
<email>methane@users.noreply.github.com</email>
</author>
<published>2017-12-18T06:52:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=87010e85cb37192d63b1a30e5fabba307ad5a3f5'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-29469: Optimize literal lists and sets iterating on the AST level. (#4866)</title>
<updated>2017-12-14T18:24:31+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-12-14T18:24:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=15a8728415e765f57e37f431f09e5c5821a04063'/>
<id>15a8728415e765f57e37f431f09e5c5821a04063</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-29469: Remove unnecessary peephole optimizer (GH-4863)</title>
<updated>2017-12-14T13:18:26+00:00</updated>
<author>
<name>INADA Naoki</name>
<email>methane@users.noreply.github.com</email>
</author>
<published>2017-12-14T13:18:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=eadad1b97f64619bfd246b9d3b60d25f456e0592'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-29469: Move constant folding to AST optimizer (GH-2858)</title>
<updated>2017-12-14T07:47:20+00:00</updated>
<author>
<name>INADA Naoki</name>
<email>methane@users.noreply.github.com</email>
</author>
<published>2017-12-14T07:47:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=7ea143ae795a9fd57eaccf490d316bdc13ee9065'/>
<id>7ea143ae795a9fd57eaccf490d316bdc13ee9065</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-30501: Make the compiler producing optimized code for condition expressions. (#1851)</title>
<updated>2017-06-11T11:50:22+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-06-11T11:50:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=36ff451ebae41f09560bff582c95946474d898f8'/>
<id>36ff451ebae41f09560bff582c95946474d898f8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #28517: Fixed of-by-one error in the peephole optimizer that caused</title>
<updated>2016-10-25T06:30:43+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2016-10-25T06:30:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=7db3c488335168993689ddae5914a28e16188447'/>
<id>7db3c488335168993689ddae5914a28e16188447</id>
<content type='text'>
keeping unreachable code.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
keeping unreachable code.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed refactoring bug in dd046963bd42 (issue27129).</title>
<updated>2016-09-11T12:19:12+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2016-09-11T12:19:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=a1e9ab34a9cfe335af1b34287cdda6743c53487d'/>
<id>a1e9ab34a9cfe335af1b34287cdda6743c53487d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
