File tree Expand file tree Collapse file tree
cranelift/codegen/src/opts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 523523(rule (simplify (bor ty (bxor ty (band ty z y) x) y)) (bor ty x y))
524524(rule (simplify (bor ty y (bxor ty (band ty z y) x))) (bor ty x y))
525525
526- ; ((x & y) ^ y) + z --> (y + z) - (x & y)
527- (rule (simplify (iadd ty (bxor ty (band ty x y) y) z)) (isub ty (iadd ty y z) (band ty x y)))
528- (rule (simplify (iadd ty z (bxor ty (band ty x y) y))) (isub ty (iadd ty y z) (band ty x y)))
529- (rule (simplify (iadd ty (bxor ty y (band ty x y)) z)) (isub ty (iadd ty y z) (band ty x y)))
530- (rule (simplify (iadd ty z (bxor ty y (band ty x y)))) (isub ty (iadd ty y z) (band ty x y)))
531- (rule (simplify (iadd ty (bxor ty (band ty y x) y) z)) (isub ty (iadd ty y z) (band ty x y)))
532- (rule (simplify (iadd ty z (bxor ty (band ty y x) y))) (isub ty (iadd ty y z) (band ty x y)))
533- (rule (simplify (iadd ty (bxor ty y (band ty y x)) z)) (isub ty (iadd ty y z) (band ty x y)))
534- (rule (simplify (iadd ty z (bxor ty y (band ty y x)))) (isub ty (iadd ty y z) (band ty x y)))
535-
536526; y & (~y | x) --> y & x
537527(rule (simplify (band ty y (bor ty (bnot ty y) x))) (band ty y x))
538528(rule (simplify (band ty (bor ty (bnot ty y) x) y)) (band ty y x))
You can’t perform that action at this time.
0 commit comments