Update the peephole optimizer to remove more dead code (jumps after returns)

and inline jumps to returns.
This commit is contained in:
Neal Norwitz 2006-10-14 21:33:38 +00:00
parent 5a72372329
commit cbeb687c68
4 changed files with 55 additions and 5 deletions

View file

@ -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