[llvm] [InstCombine] Canonicalize xor with disjoint ops to or disjoint (PR #133139)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 2 21:14:36 PDT 2025


dtcxzyw wrote:

> It's fewer IR instructions, so it's better canonical form.

I think the canonical form should be:
```
%i.not2.not = trunc i32 %i28 to i1
%i144 = select i1 %i.not2.not, i32 72, i32 0
```
cc @andjo403 


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


More information about the llvm-commits mailing list