(A & B) ^ (A | C) --> A ? ~B : C
https://alive2.llvm.org/ce/z/KCBfXr
https://alive2.llvm.org/ce/z/Pm-zJN
https://alive2.llvm.org/ce/z/VT8uC2
Paths
| Differential D141660
[InstCombine] Fold pattern xor(and, or) to select ClosedPublic Authored by bcl5980 on Jan 12 2023, 11:44 PM.
Details
Summary (A & B) ^ (A | C) --> A ? ~B : C https://alive2.llvm.org/ce/z/KCBfXr
Diff Detail
Unit TestsFailed Event Timeline
Comment Actions LGTM
This revision is now accepted and ready to land.Jan 18 2023, 5:30 AM
This revision was landed with ongoing or failed builds.Feb 3 2023, 1:12 AM Closed by commit rG4a66b3b20ed6: [InstCombine] Fold pattern xor(and, or) to select (authored by bcl5980). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 488879 llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
llvm/test/Transforms/InstCombine/xor-and-or.ll
|
Capitalize variable name: "NeedFreeze"