cranelift: Remove predicate not macro branch (#5552)

This commit is contained in:
Afonso Bordado
2023-01-09 20:19:30 +00:00
committed by GitHub
parent f85e3f8517
commit 8ac04612ae

View File

@@ -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()
};