diff --git a/cranelift/codegen/src/opts/algebraic.isle b/cranelift/codegen/src/opts/algebraic.isle index 888dd51bbc..061c61c511 100644 --- a/cranelift/codegen/src/opts/algebraic.isle +++ b/cranelift/codegen/src/opts/algebraic.isle @@ -101,7 +101,7 @@ (subsume x)) ;; x ^ x == 0. -(rule (simplify (bxor (fits_in_64 ty) x x)) +(rule (simplify (bxor (fits_in_64 (ty_int ty)) x x)) (subsume (iconst ty (imm64 0)))) ;; x ^ not(x) == not(x) ^ x == -1. @@ -167,6 +167,9 @@ (iadd ty x x)) ;; x*c == x<