[PATCH] D112108: [InstCombine] Fold `(a & ~b) & ~c` to `a & ~(b | c)`

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 21 11:51:56 PDT 2021


rampitec added a comment.

In D112108#3076662 <https://reviews.llvm.org/D112108#3076662>, @spatel wrote:

> In D112108#3076632 <https://reviews.llvm.org/D112108#3076632>, @rampitec wrote:
>
>> Actually it is transformed too. It does not with `opt -instcombine` but does with `opt -reassociate -instcombine` or just `opt -O3`.
>
> Thanks, that's good news. If you want to make sure that combination of transforms doesn't break invisibly, you could add a test like that for -O{1,2,3} runs to /test/Transforms/PhaseOrdering..

D112258 <https://reviews.llvm.org/D112258>


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112108/new/

https://reviews.llvm.org/D112108



More information about the llvm-commits mailing list