[issue27095] Simplify MAKE_FUNCTION
Demur Rumed
report at bugs.python.org
Sat Jun 11 20:47:45 EDT 2016
Demur Rumed added the comment:
mkfu4 implements #27140. It doesn't special case 1-tuples into `BUILD_MAP 1`
It may be easier to have `BUILD_CONST_KEY_MAP 1` peepholed if it's really preferable to strength reduce
I'm also noticing that it could've been suggested to go to the extreme with BUILD_CONST_KEY_MAP where instead of relying on peepholer to constant fold tuple, we implement constant folding const keys entirely there. Just a random thought, not a suggestion or anything else
----------
Added file: http://bugs.python.org/file43353/mkfu4.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27095>
_______________________________________
More information about the Python-bugs-list
mailing list