This is an archive of the discontinued LLVM Phabricator instance.

[NFC][InstCombine] Baseline tests for canonicalizing "logic op, add"
AbandonedPublic

Authored by emgullufsen on Aug 24 2022, 7:59 AM.

Details

Reviewers
None
Summary

((x + C1) & C2) --> ((x & C2) + C1)
((x + C1) ^ C2) --> ((x ^ C2) + C1)
((x + C1) | C2) --> ((x | C2) + C1)

for suitable constants C1 and C2.

Differential Revision D131140

Diff Detail

Event Timeline

emgullufsen created this revision.Aug 24 2022, 7:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 24 2022, 7:59 AM
emgullufsen requested review of this revision.Aug 24 2022, 7:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 24 2022, 7:59 AM
emgullufsen abandoned this revision.Aug 24 2022, 8:01 AM