Cranelift: Rewrite or(and(x, y), not(y)) => or(x, not(y)) (#5676)
Co-authored-by: Rainy Sinclair <844493+itsrainy@users.noreply.github.com>
This commit is contained in:
@@ -109,6 +109,11 @@ macro_rules! isle_common_prelude_methods {
|
||||
!x
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn u64_eq(&mut self, x: u64, y: u64) -> u64 {
|
||||
u64::from(x == y)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn u64_is_zero(&mut self, value: u64) -> bool {
|
||||
0 == value
|
||||
|
||||
Reference in New Issue
Block a user