Skip to content

Commit a040947

Browse files
committed
Remove no longer necessary eliminate_unreachable_code pass
cranelift-frontend now uses iconst.i64 + uextend instead of the invalid iconst.i128.
1 parent b9d7e6f commit a040947

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/base.rs

-10
Original file line numberDiff line numberDiff line change
@@ -141,16 +141,6 @@ pub(crate) fn compile_fn(
141141
context.clear();
142142
context.func = codegened_func.func;
143143

144-
// If the return block is not reachable, then the SSA builder may have inserted an `iconst.i128`
145-
// instruction, which doesn't have an encoding.
146-
context.compute_cfg();
147-
context.compute_domtree();
148-
context.eliminate_unreachable_code(module.isa()).unwrap();
149-
context.dce(module.isa()).unwrap();
150-
// Some Cranelift optimizations expect the domtree to not yet be computed and as such don't
151-
// invalidate it when it would change.
152-
context.domtree.clear();
153-
154144
#[cfg(any())] // This is never true
155145
let _clif_guard = {
156146
use std::fmt::Write;

0 commit comments

Comments
 (0)