Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

[Cranelift] deduplicate rule (#13056)

Bongjun Jang87ffaa3485d9
diff --git a/cranelift/codegen/src/opts/icmp.isle b/cranelift/codegen/src/opts/icmp.isle
index 1621bb5922..71a58d57a3 100644
--- a/cranelift/codegen/src/opts/icmp.isle
+++ b/cranelift/codegen/src/opts/icmp.isle
@@ -84,9 +84,6 @@
(rule (simplify
(select ty (uextend _ c @ (icmp _ _ _ _)) x y))
(select ty c x y))
-(rule (simplify
- (select ty (uextend _ c @ (icmp _ _ _ _)) x y))
- (select ty c x y))
;; Masking the result of a comparison with 1 always results in the comparison
;; itself. Note that comparisons in wasm may sometimes be hidden behind