Skip to main content

optimize_function

Function optimize_function 

Source
pub fn optimize_function(func: &HirFunction) -> HirFunction
Expand description

Run all optimization passes on a function.

Runs constant folding, dead branch removal, and temporary elimination in a fixed-point loop until no more changes are made or MAX_ITERATIONS is reached.