hashc
hashc copied to clipboard
Constant propagation pass
Another powerful optimisation opportunity is constant propagation. This pass should be able to simplify and optimise out as much constness out of an IR body as possible.
This might include things like:
- removing comp-time known branch paths
- folding constant expressions
- simplifying control flow in general