[NFC][InstCombine] Add baseline tests for canonicalizing "and, add", "or, add", "xor, add"
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`. Reviewed By: spatel Differential Revision: https://reviews.llvm.org/D131140
Loading
Please sign in to comment