You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/rhettinger'closed_at=<Date2008-05-31.04:59:27.344>created_at=<Date2007-07-31.22:44:17.000>labels= ['interpreter-core']
title='generic and more efficient removal of unreachable code'updated_at=<Date2008-05-31.04:59:27.154>user='https://bugs.python.org/doublep'
The attached patch removed unreachable code after RAISE_VARARGS, BREAK_LOOP and RETURN_VALUE in generic way (no more tests for LOAD_CONST None RETURN_VALUE, etc.)
It is possible to generalize it more for some other bytecodes. The only problem they are already used in switch() in question as labels. Probably not important enough to warrant another switch() or break this out into a function/macro.
No speedup is expected, but I think the patch is good with no drawbacks anyway.
Not too excited about this. It adds to compilation time but doesn't
save any runtime. It's not at all common for production code to have
unreachable code at RAISE_VARARGS or BREAK_LOOP, so I see no reason to
complexify to the peepholer to handle this case.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: