thautwarm / restrain-jit

The first and yet the only CPython compatible Python JIT, over the world.(julia backend: https://github.com/thautwarm/RestrainJIT.jl)
MIT License
107 stars 6 forks source link

optimizing stack machine instructions #3

Open thautwarm opened 5 years ago

thautwarm commented 5 years ago

The instructions are from Python bytecode. A simple pass is now presented here,

to avoid successively occurrences of following case:

a ::= Push(_) Pop() | Push(_) a Pop()
thautwarm commented 5 years ago

However above simple pass is not sufficient at all. We need more instruction level optimizations.