Skip to content

bpo-37269: Correctly optimize constant conditionals of binops#14071

Merged
pablogsal merged 4 commits intopython:masterfrom
pablogsal:bpo37269
Jun 14, 2019
Merged

bpo-37269: Correctly optimize constant conditionals of binops#14071
pablogsal merged 4 commits intopython:masterfrom
pablogsal:bpo37269

Conversation

@pablogsal
Copy link
Member

@pablogsal pablogsal commented Jun 14, 2019

@pablogsal pablogsal merged commit 05f8318 into python:master Jun 14, 2019
@miss-islington
Copy link
Contributor

Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-14072 is a backport of this pull request to the 3.8 branch.

@miss-islington
Copy link
Contributor

Sorry, @pablogsal, I could not cleanly backport this to 3.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 05f831865545b08c9a21cfb7773af58b76ec64cb 3.7

@bedevere-bot
Copy link

GH-14073 is a backport of this pull request to the 3.7 branch.

pablogsal added a commit to pablogsal/cpython that referenced this pull request Jun 14, 2019
…ns (pythonGH-14071)

Fix a regression introduced by af8646c that was causing code of the form:

if True and False:
   do_something()

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

Co-authored-by: Pablo Galindo <[email protected]>
miss-islington added a commit that referenced this pull request Jun 14, 2019
…-14071)

Fix a regression introduced by af8646c that was causing code of the form:

if True and False:
   do_something()

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

Co-authored-by: Pablo Galindo <[email protected]>
pablogsal added a commit that referenced this pull request Jun 14, 2019
…ns (GH-14071) (GH-14073)

Fix a regression introduced by af8646c that was causing code of the form:

if True and False:
   do_something()

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

Co-authored-by: Pablo Galindo <[email protected]>
lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
…thonGH-14071)

Fix a regression introduced by af8646c that was causing code of the form:

if True and False:
   do_something()

to be optimized incorrectly, eliminating the block.
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
…thonGH-14071)

Fix a regression introduced by af8646c that was causing code of the form:

if True and False:
   do_something()

to be optimized incorrectly, eliminating the block.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants