[llvm] [InstCombine] Turn (A | B) != 0 & (A == 0 | B == 0) -> (A == 0) ^ (B == 0) (PR #207257)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 4 18:33:41 PDT 2026
AZero13 wrote:
> None of the above answers my question. Please cite an example where this pattern shows up in a real world software project (ideally a popular OSS application/library).
Yes. This project in fact.
```C++
DeclContext *NamedContext = computeDeclContext(SS);
assert(bool(NamedContext) == (R || UD) && !(R && UD) &&
"resolvable context must have exactly one set of decls");
```
https://github.com/llvm/llvm-project/pull/207257
More information about the llvm-commits
mailing list