Delete old cranelift-preopt crate (#5642)

Most of these optimizations are in the egraph `cprop.isle` rules now,
making a separate crate unnecessary.

Also I think the `udiv` optimizations here are straight-up wrong (doing
signed instead of unsigned division, and panicking instead of preserving
traps on division by zero) so I'm guessing this crate isn't seriously
used anywhere.

At the least, bjorn3 confirms that cg_clif doesn't use this, and I've
verified that Wasmtime doesn't either.

Closes #1090.
This commit is contained in:
Jamey Sharp
2023-01-26 13:32:33 -08:00
committed by GitHub
parent a181ad2932
commit 915801551b
17 changed files with 2 additions and 750 deletions

9
Cargo.lock generated
View File

@@ -599,7 +599,6 @@ dependencies = [
"cranelift-jit",
"cranelift-module",
"cranelift-native",
"cranelift-preopt",
"cranelift-reader",
"cranelift-wasm",
"file-per-thread-logger",
@@ -713,13 +712,6 @@ dependencies = [
"target-lexicon",
]
[[package]]
name = "cranelift-preopt"
version = "0.93.0"
dependencies = [
"cranelift-codegen",
]
[[package]]
name = "cranelift-reader"
version = "0.93.0"
@@ -758,7 +750,6 @@ dependencies = [
"cranelift-module",
"cranelift-native",
"cranelift-object",
"cranelift-preopt",
"cranelift-reader",
"cranelift-wasm",
"filecheck",