Skip to content

Commit 00b47b9

Browse files
committed
[NFC] Fix missplaced comment
1 parent 78e026f commit 00b47b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4738,10 +4738,6 @@ Instruction *InstCombinerImpl::visitXor(BinaryOperator &I) {
47384738
if (Instruction *R = foldBinOpShiftWithShift(I))
47394739
return R;
47404740

4741-
// Fold (X & M) ^ (Y & ~M) -> (X & M) | (Y & ~M)
4742-
// This it a special case in haveNoCommonBitsSet, but the computeKnownBits
4743-
// calls in there are unnecessary as SimplifyDemandedInstructionBits should
4744-
// have already taken care of those cases.
47454741
Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1);
47464742
Value *X, *Y, *M;
47474743

@@ -4756,6 +4752,10 @@ Instruction *InstCombinerImpl::visitXor(BinaryOperator &I) {
47564752
return BinaryOperator::CreateXor(XorBC, X);
47574753
}
47584754

4755+
// Fold (X & M) ^ (Y & ~M) -> (X & M) | (Y & ~M)
4756+
// This it a special case in haveNoCommonBitsSet, but the computeKnownBits
4757+
// calls in there are unnecessary as SimplifyDemandedInstructionBits should
4758+
// have already taken care of those cases.
47594759
if (match(&I, m_c_Xor(m_c_And(m_Not(m_Value(M)), m_Value()),
47604760
m_c_And(m_Deferred(M), m_Value())))) {
47614761
if (isGuaranteedNotToBeUndef(M))

0 commit comments

Comments
 (0)