Baseline tests for canonicalizing "logic op, add"
((x + C1) & C2) --> ((x & C2) + C1) ((x + C1) ^ C2) --> ((x ^ C2) + C1) ((x + C1) | C2) --> ((x | C2) + C1)
for suitable constants C1 and C2.
Paths
| Differential D131140
[NFC][InstCombine] Add baseline tests for canonicalizing "and, add", "or, add", "xor, add" ClosedPublic Authored by emgullufsen on Aug 3 2022, 9:56 PM.
Details Summary Baseline tests for canonicalizing "logic op, add" ((x + C1) & C2) --> ((x & C2) + C1) ((x + C1) ^ C2) --> ((x ^ C2) + C1) ((x + C1) | C2) --> ((x | C2) + C1) for suitable constants C1 and C2.
Diff Detail
Event Timelineemgullufsen added a child revision: D131142: [InstCombine] Canonicalize "and, add", "or, add", "xor, add".Aug 3 2022, 10:24 PM emgullufsen retitled this revision from [NFC][InstCombine] Add baseline tests for canonicalizing ((x + C1) & C2) --> ((x & C2) + C1) ((x + C1) ^ C2) --> ((x ^ C2) + C1) ((x + C1) | C2) --> ((x | C2) + C1) for suitable constants C1 and C2. to [NFC][InstCombine] Add baseline tests for canonicalizing "and, add", "or, add", "xor, add".Aug 3 2022, 10:41 PM Comment Actions I need a few more test cases I'd neglected (multiple use negative case at least) I am realizing, will update patch. Comment Actions Looks fine but please just check the comments.
This revision is now accepted and ready to land.Aug 26 2022, 9:23 AM This revision was landed with ongoing or failed builds.Aug 26 2022, 10:57 AM Closed by commit rG2f525cfb7697: [NFC][InstCombine] Add baseline tests for canonicalizing "and, add", "or, add"… (authored by emgullufsen). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 455957 llvm/test/Transforms/InstCombine/and-xor-or.ll
|
112 is not 0xFF800000