Function cairo_lang_lowering::reorganize_blocks::reorganize_blocks

source ยท
pub fn reorganize_blocks(lowered: &mut FlatLowered)
Expand description

Reorganizes the blocks in lowered function and removes unnecessary remappings.

Removes unreachable blocks. Blocks that are reachable only through goto are combined with the block that does the goto. The order of the blocks is changed to be a topologically sorted.