((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
Paths
| Differential D132565
[NFC][InstCombine] Baseline tests for canonicalizing "logic op, add" AbandonedPublic Authored by emgullufsen on Aug 24 2022, 7:59 AM.
Details
Summary ((x + C1) & C2) --> ((x & C2) + C1) for suitable constants C1 and C2. Differential Revision D131140
Diff Detail
Revision Contents
Diff 455220 llvm/test/Transforms/InstCombine/and-xor-or.ll
|