diff --git a/cranelift/codegen/src/preopt.peepmatic b/cranelift/codegen/src/preopt.peepmatic index 8f2651fc21..0833206450 100644 --- a/cranelift/codegen/src/preopt.peepmatic +++ b/cranelift/codegen/src/preopt.peepmatic @@ -112,6 +112,8 @@ ;; Replace with negative 1. (=> (bor_imm -1 $x) -1) + +;; Other replacments (=> (bxor_imm -1 $x) (bnot $x)) ;; Transform `[(x << N) >> N]` into a (un)signed-extending move.