We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0c2d82 commit e2d77dcCopy full SHA for e2d77dc
1 file changed
cranelift/codegen/src/opts/transopt.isle
@@ -1689,6 +1689,9 @@
1689
(rule (simplify (bxor ty (bxor ty x y) (bxor ty z y))) (bxor ty x z))
1690
(rule (simplify (bxor ty (bxor ty x y) x)) y)
1691
(rule (simplify (bxor ty (bxor ty x y) y)) x)
1692
+;; FIX: keccak
1693
+(rule (simplify (bxor ty (iconst_s ty -1) x)) (bnot ty x))
1694
+(rule (simplify (bxor ty x (iconst_s ty -1))) (bnot ty x))
1695
(rule (simplify (bxor ty (eq ty (iconst cty x) y) (iconst_u ty 1))) (ne ty (iconst cty x) y))
1696
(rule (simplify (bxor ty (eq ty (iconst cty x) y) (ne ty y (iconst cty x)))) (iconst_u ty 1))
1697
(rule (simplify (bxor ty (eq ty x (iconst cty y)) (iconst_u ty 1))) (ne ty x (iconst cty y)))
0 commit comments