mirror of
https://github.com/python/cpython.git
synced 2025-07-27 13:14:41 +00:00
Update the peephole optimizer to remove more dead code (jumps after returns)
and inline jumps to returns.
This commit is contained in:
parent
5a72372329
commit
cbeb687c68
4 changed files with 55 additions and 5 deletions
|
@ -65,9 +65,10 @@ extern time_t PyOS_GetLastModificationTime(char *, FILE *);
|
|||
Python 2.5c1: 62121 (fix wrong lnotab with for loops and
|
||||
storing constants that should have been removed)
|
||||
Python 2.5c2: 62131 (fix wrong code: for x, in ... in listcomp/genexp)
|
||||
Python 2.6a0: 62141 (peephole optimizations)
|
||||
.
|
||||
*/
|
||||
#define MAGIC (62131 | ((long)'\r'<<16) | ((long)'\n'<<24))
|
||||
#define MAGIC (62141 | ((long)'\r'<<16) | ((long)'\n'<<24))
|
||||
|
||||
/* Magic word as global; note that _PyImport_Init() can change the
|
||||
value of this global to accommodate for alterations of how the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue