Skip to content

Commit 09fb3f3

Browse files
committed
Fix comment from bad merge
Change-Id: I879acdf0b17a7110286c6c375410300611c468eb
1 parent 8545b3b commit 09fb3f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3774,9 +3774,9 @@ Instruction *InstCombinerImpl::visitOr(BinaryOperator &I) {
37743774
/*NSW=*/true, /*NUW=*/true))
37753775
return R;
37763776

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
3777+
// (A & N) * C + (A & M) * C -> (A & (N + M)) & C
3778+
// This also accepts the equivalent select form of (A & N) * C
3779+
// expressions i.e. !(A & N) ? 0 : N * C)
37803780
CombinedBitmaskMul Decomp1 = matchCombinedBitmaskMul(I.getOperand(1));
37813781
auto BMDecomp1 = Decomp1.first;
37823782

0 commit comments

Comments
 (0)