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

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 22 01:30:13 PDT 2024


https://github.com/nikic commented:

Looks reasonable.

A possible alternative would be to try to integrate this inside SimplifyAssociativeOrCommutative, by replacing the opcode `==` matches there with a stronger check that knows that `or disjoint` is compatible with or, xor and add. I'm okay with the separate fold though.

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


More information about the llvm-commits mailing list