Skip to content

Commit 39f8c4e

Browse files
authored
remove demorgan rules (#12127)
1 parent 050d779 commit 39f8c4e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

cranelift/codegen/src/opts/bitops.isle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,6 @@
4141
;; not(not(x)) == x.
4242
(rule (simplify (bnot ty (bnot ty x))) (subsume x))
4343

44-
;; DeMorgan's rule (two versions):
45-
;; bnot(bor(x, y)) == band(bnot(x), bnot(y))
46-
(rule (simplify (bnot ty (bor ty x y)))
47-
(band ty (bnot ty x) (bnot ty y)))
48-
;; bnot(band(x, y)) == bor(bnot(x), bnot(y))
49-
(rule (simplify (bnot ty (band t x y)))
50-
(bor ty (bnot ty x) (bnot ty y)))
51-
5244
;; `or(and(x, y), not(y)) == or(x, not(y))`
5345
(rule (simplify (bor ty
5446
(band ty x y)

0 commit comments

Comments
 (0)