Reachability bugfix.
This commit is contained in:
parent
dcc8148dcb
commit
0966fdf1e8
|
@ -1296,7 +1296,7 @@ impl<'a, 'b> FunctionBodyBuilder<'a, 'b> {
|
|||
out,
|
||||
params,
|
||||
results,
|
||||
merge_reachable,
|
||||
merge_reachable: merge_reachable || self.reachable,
|
||||
});
|
||||
self.cur_block = el;
|
||||
self.locals.start_block(el, self.reachable);
|
||||
|
|
|
@ -224,7 +224,6 @@ impl<'a> Module<'a> {
|
|||
let mut module = frontend::wasm_to_ir(bytes)?;
|
||||
for func_decl in module.funcs.values_mut() {
|
||||
if let Some(body) = func_decl.body_mut() {
|
||||
crate::passes::rpo::run(body);
|
||||
let cfg = crate::cfg::CFGInfo::new(body);
|
||||
crate::passes::basic_opt::gvn(body, &cfg);
|
||||
crate::passes::resolve_aliases::run(body);
|
||||
|
|
Loading…
Reference in a new issue