[llvm] [InstCombine] Fold Xor with or disjoint (PR #105992)

Amr Hesham via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 03:01:19 PDT 2024


AmrDeveloper wrote:

> > > Can you add some tests to demonstrate the usefulness of this patch (e.g., the original issue #79266)?
> > 
> > Any idea why it timeout on `ninja runtimes C++03` on linux CI, i did rebase to the code but still same issue
> 
> Probably an inf loop. Typically we do `xor` -> `disjoint or`. If the three value all dont share bits I think this will inf loop between `(xor  (or disjoint x, y), z)` -> `(xor (xor x, z), y)`

Yes it passed now

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


More information about the llvm-commits mailing list