[all-commits] [llvm/llvm-project] 2f525c: [NFC][InstCombine] Add baseline tests for canonica...

Eric Gullufsen via All-commits all-commits at lists.llvm.org
Fri Aug 26 10:57:28 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2f525cfb76974b7c23aeda1199dfe9d78b012d2c
      https://github.com/llvm/llvm-project/commit/2f525cfb76974b7c23aeda1199dfe9d78b012d2c
  Author: Eric Gullufsen <ericgullufsen at gmail.com>
  Date:   2022-08-26 (Fri, 26 Aug 2022)

  Changed paths:
    M llvm/test/Transforms/InstCombine/and-xor-or.ll

  Log Message:
  -----------
  [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




More information about the All-commits mailing list