cairo_lang_lowering::optimizations::const_folding

Function const_folding

source
pub fn const_folding(db: &dyn LoweringGroup, lowered: &mut FlatLowered)
Expand description

Performs constant folding on the lowered program. The optimization works better when the blocks are topologically sorted.