From 67b785d24146b65d8619cfc75c05c914fdcf87f5 Mon Sep 17 00:00:00 2001 From: MaxGraey Date: Wed, 15 Jul 2020 17:11:27 +0300 Subject: [PATCH] refactor: use different sections for this rule --- cranelift/codegen/src/preopt.peepmatic | 2 ++ 1 file changed, 2 insertions(+) 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.