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

via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 1 11:54:41 PDT 2024


goldsteinn 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)`

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


More information about the llvm-commits mailing list