ykjit / yk

yk packages
https://ykjit.github.io/yk/
Other
28 stars 7 forks source link

Optimise `ICmp` when both sides are constants #1242

Closed ltratt closed 1 month ago

ltratt commented 1 month ago

The ultimate aim of this PR is to optimise ICmps when both sides are constants (https://github.com/ykjit/yk/commit/e98a2c904d1908e1a9da7fee7e669c57bcb639f8), but doing so for all predicates requires quite a bit of preparatory work.

ptersilie commented 1 month ago

Nice. I presume this is also in preparation to another optimisation that removes guards?

ltratt commented 1 month ago

I presume this is also in preparation to another optimisation that removes guards?

Correct! That will require some other stuff to be done first, which is why I'd prefer to do it in another PR.