waffle-util: always expand all funcs

This commit is contained in:
Chris Fallin 2023-02-14 19:24:03 -08:00
parent e23d19b03a
commit 4bbeb84832

View file

@ -42,9 +42,7 @@ enum Command {
} }
fn apply_options(opts: &Options, module: &mut Module) -> Result<()> { fn apply_options(opts: &Options, module: &mut Module) -> Result<()> {
if opts.basic_opts || opts.max_ssa {
module.expand_all_funcs()?; module.expand_all_funcs()?;
}
if opts.basic_opts { if opts.basic_opts {
module.per_func_body(|body| body.optimize()); module.per_func_body(|body| body.optimize());
} }