1
1
mirror of https://github.com/anoma/juvix.git synced 2024-09-11 16:26:33 +03:00
juvix/runtime/c
Łukasz Czajka 4dcbb002fe
Add an if instruction to JuvixReg (#2855)
* Closes #2829
* Adds a transformation which converts `br` to `if` when the variable
branched on was assigned in the previous instruction. The transformation
itself doesn't check liveness and doesn't remove the assignment. Dead
code elimination should be run afterwards to remove the assignment.
* For Cairo, it only makes sense to convert `br` to `if` for equality
comparisons against zero. The assignment before `br` will always become
dead after converting `br` to `if`, because we convert to SSA before.
2024-06-26 19:08:33 +02:00
..
src/juvix Add an if instruction to JuvixReg (#2855) 2024-06-26 19:08:33 +02:00
Makefile Rust runtime (#2782) 2024-05-22 12:26:51 +02:00
Makefile.generic Rust runtime (#2782) 2024-05-22 12:26:51 +02:00
PROJECT Rust runtime (#2782) 2024-05-22 12:26:51 +02:00