[llvm] [InstCombine] Pass disjoint in or combine (PR #138800)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Tue May 6 23:07:04 PDT 2025


================
@@ -3894,12 +3894,23 @@ Instruction *InstCombinerImpl::visitOr(BinaryOperator &I) {
   // be simplified by a later pass either, so we try swapping the inner/outer
   // ORs in the hopes that we'll be able to simplify it this way.
   // (X|C) | V --> (X|V) | C
+  // Pass the disjoint flag in two following patters:
----------------
dtcxzyw wrote:

```suggestion
  // Pass the disjoint flag in the following two patterns:
```

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


More information about the llvm-commits mailing list