]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Teach the peepholer to fold unary operations on constants.
authorRaymond Hettinger <python@rcn.com>
Sun, 20 Feb 2005 12:41:32 +0000 (12:41 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 20 Feb 2005 12:41:32 +0000 (12:41 +0000)
commit80121491e083a3e80d482f73d201590083285d57
tree2b4326c876501e6dad7b91dfefeec607c6626bd4
parent57e7447c447249a33a13da853f8c1bfec546842a
Teach the peepholer to fold unary operations on constants.

Afterwards, -0.5 loads in a single step and no longer requires a runtime
UNARY_NEGATIVE operation.
Python/compile.c