We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8545b3b commit 09fb3f3Copy full SHA for 09fb3f3
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
@@ -3774,9 +3774,9 @@ Instruction *InstCombinerImpl::visitOr(BinaryOperator &I) {
3774
/*NSW=*/true, /*NUW=*/true))
3775
return R;
3776
3777
- // (!(A & N) ? 0 : N * C) + (!(A & M) ? 0 : M * C) -> A & (N + M) * C
3778
- // This also accepts the equivalent mul form of (A & N) ? 0 : N * C)
3779
- // expressions i.e. (A & N) * C
+ // (A & N) * C + (A & M) * C -> (A & (N + M)) & C
+ // This also accepts the equivalent select form of (A & N) * C
+ // expressions i.e. !(A & N) ? 0 : N * C)
3780
CombinedBitmaskMul Decomp1 = matchCombinedBitmaskMul(I.getOperand(1));
3781
auto BMDecomp1 = Decomp1.first;
3782
0 commit comments