bpo-37500: Make sure dead code does not generate bytecode but also detect syntax errors by pablogsal · Pull Request #14612 · python/cpython

@pablogsal pablogsal changed the title bpo-37500: Revert commit 85ed1712e428f93408f56fc684816f9a85b0ebc0 bpo-37500: Make sure bytecode for always false conditional is not emmited

Jul 5, 2019

pablogsal

vstinner

@pablogsal

…tted

Add a new field to the compiler structure that allows to be configured
so no bytecode is emitted. In this way is possible to detect errors by
walking the nodes while preserving optimizations.

Add a specific tests for dead blocks being optimized.

@pablogsal

@pablogsal pablogsal changed the title bpo-37500: Make sure bytecode for always false conditional is not emmited bpo-37500: Make sure dead code does not generate bytecode

Jul 6, 2019

@pablogsal pablogsal changed the title bpo-37500: Make sure dead code does not generate bytecode bpo-37500: Make sure dead code does not generate bytecode but also detect syntax errors

Jul 6, 2019

vstinner

serhiy-storchaka

vstinner

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Jul 15, 2019

@pablogsal @miss-islington

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Jul 29, 2019

@pablogsal @miss-islington

lisroach pushed a commit to lisroach/cpython that referenced this pull request

Sep 10, 2019

DinoV pushed a commit to DinoV/cpython that referenced this pull request

Jan 14, 2020