Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 40116:3985d7e2067d legacy-trunk
Update the peephole optimizer to remove more dead code (jumps after returns)
and inline jumps to returns.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Sat, 14 Oct 2006 21:33:38 +0000 |
| parents | 47ab0c27dd1f |
| children | d3a35fe13838 |
line wrap: on
line diff
--- a/Python/import.c Sat Oct 14 06:36:45 2006 +0000 +++ b/Python/import.c Sat Oct 14 21:33:38 2006 +0000 @@ -65,9 +65,10 @@ 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
