[llvm] [GlobalISel] Add `or_and_xor_to_or` pattern from SelectionDAG (PR #201108)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 2 06:13:12 PDT 2026


jayfoad wrote:

How about generalizing this?
```
(X&~Y)|Y --> X|Y
(X&Y)|~Y --> X|~Y
(X|~Y)&Y --> X&Y
(X|Y)&~Y --> X&~Y
```

https://github.com/llvm/llvm-project/pull/201108


More information about the llvm-commits mailing list