Files
clang-p2996/llvm/test/Transforms/InstCombine
Roman Lebedev a0004358a8 [InstCombine] Negator: 'or' with no common bits set is just 'add'
In `InstCombiner::visitAdd()`, we have
```
  // A+B --> A|B iff A and B have no bits set in common.
  if (haveNoCommonBitsSet(LHS, RHS, DL, &AC, &I, &DT))
    return BinaryOperator::CreateOr(LHS, RHS);
```
so we should handle such `or`'s here, too.
2020-04-28 19:16:32 +03:00
..
2020-02-27 09:06:03 -08:00
2019-08-14 16:50:06 +00:00
2020-02-27 09:06:03 -08:00
2019-09-11 10:51:26 +00:00
2019-09-06 16:26:59 +00:00
2020-02-27 09:06:03 -08:00

This directory contains test cases for the instcombine transformation.  The
dated tests are actual bug tests, whereas the named tests are used to test
for features that the this pass should be capable of performing.