From 657aea528689b9ca00bbeff5e32ca58ec7a2e6e1 Mon Sep 17 00:00:00 2001 From: MaxGraey Date: Thu, 16 Jul 2020 14:56:11 +0300 Subject: [PATCH] remove rule and tests --- cranelift/codegen/src/preopt.peepmatic | 3 --- cranelift/codegen/src/preopt.serialized | Bin 5657 -> 5613 bytes .../filetests/peepmatic/simplify64.clif | 14 -------------- 3 files changed, 17 deletions(-) diff --git a/cranelift/codegen/src/preopt.peepmatic b/cranelift/codegen/src/preopt.peepmatic index 0833206450..cd988ff7d9 100644 --- a/cranelift/codegen/src/preopt.peepmatic +++ b/cranelift/codegen/src/preopt.peepmatic @@ -113,9 +113,6 @@ ;; 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. ;; ;; i16 -> i8 -> i16 diff --git a/cranelift/codegen/src/preopt.serialized b/cranelift/codegen/src/preopt.serialized index 896c3ac8d7f3c3976ae46fff75bfa9b14a5a30dc..1319882a51b346e3caf54241aeed5740b81d38b3 100644 GIT binary patch delta 20 ccmbQK^HzI9KF{QzY&?^zdBisF<%!`009pzMxBvhE delta 56 tcmaE>JyT~xKF?%ME}6;xEL@ZS@^Q#BF(3dF0~>+^WC3}bC-B5_0sue}2t@z@ diff --git a/cranelift/filetests/filetests/peepmatic/simplify64.clif b/cranelift/filetests/filetests/peepmatic/simplify64.clif index 72b4893c70..93c289ccdd 100644 --- a/cranelift/filetests/filetests/peepmatic/simplify64.clif +++ b/cranelift/filetests/filetests/peepmatic/simplify64.clif @@ -324,17 +324,3 @@ block0(v0: i32): ; nextln: v1 = iadd_imm v0, 42 ; nextln: nop ; nextln: return v2 - -function %bxor_imm_32(i32) -> i32 { -block0(v0: i32): - v1 = bxor_imm v0, -1 - ; check: bnot v0 - return v1 -} - -function %bxor_imm_64(i64) -> i64 { -block0(v0: i64): - v1 = bxor_imm v0, -1 - ; check: bnot v0 - return v1 -}