hashc icon indicating copy to clipboard operation
hashc copied to clipboard

Constant propagation pass

Open feds01 opened this issue 1 year ago • 0 comments

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

feds01 avatar Oct 19 '23 07:10 feds01