ykjit / yk

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

Add a simple dead-code elimination function to `jit_ir::Module`. #1266

Closed ltratt closed 3 weeks ago

ltratt commented 3 weeks ago

This currently only copes with a subset of the IR, because we probably want to implement some additional functionality before fully fleshing this out.

[Note: I'm currently happy with the map_operands call, as my previous attempts to solve this had all required heap allocation. I'm hoping I'll remain happy with it!]