mod dce;
mod gvn;
use super::func::Func;
pub use dce::{remove_dead_blocks, remove_dead_instructions};
use gvn::global_value_numbering;
pub fn optimize_func(func: &mut Func) {
remove_dead_blocks(func);
remove_dead_instructions(func);
global_value_numbering(func, None);
remove_dead_instructions(func);
}