From 8ac04612ae5b4bb22a9359da6c595840ba10edb6 Mon Sep 17 00:00:00 2001 From: Afonso Bordado Date: Mon, 9 Jan 2023 20:19:30 +0000 Subject: [PATCH] cranelift: Remove predicate not macro branch (#5552) --- cranelift/codegen/meta/src/cdsl/mod.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/cranelift/codegen/meta/src/cdsl/mod.rs b/cranelift/codegen/meta/src/cdsl/mod.rs index fa5f625628..565783ad16 100644 --- a/cranelift/codegen/meta/src/cdsl/mod.rs +++ b/cranelift/codegen/meta/src/cdsl/mod.rs @@ -17,15 +17,6 @@ macro_rules! predicate { ($a:ident && $($b:tt)*) => { PredicateNode::And(Box::new($a.into()), Box::new(predicate!($($b)*))) }; - (!$a:ident && $($b:tt)*) => { - PredicateNode::And( - Box::new(PredicateNode::Not(Box::new($a.into()))), - Box::new(predicate!($($b)*)) - ) - }; - (!$a:ident) => { - PredicateNode::Not(Box::new($a.into())) - }; ($a:ident) => { $a.into() };