Lines Matching refs:MaskC
2061 const APInt *MaskC; in foldICmpOrConstant() local
2062 if (match(OrOp1, m_APInt(MaskC)) && Cmp.isEquality()) { in foldICmpOrConstant()
2063 if (*MaskC == C && (C + 1).isPowerOf2()) { in foldICmpOrConstant()
2076 Value *And = Builder.CreateAnd(OrOp0, ~(*MaskC)); in foldICmpOrConstant()
2077 Constant *NewC = ConstantInt::get(Or->getType(), C ^ (*MaskC)); in foldICmpOrConstant()
2651 Constant *MaskC = ConstantInt::get(Ty, SignMask | (*DivisorC - 1)); in foldICmpSRemConstant() local
2652 Value *And = Builder.CreateAnd(SRem->getOperand(0), MaskC); in foldICmpSRemConstant()
5672 const APInt *MaskC; in foldICmpEquality() local
5673 if (match(Op0, m_And(m_Value(B), m_LowBitMask(MaskC))) && in foldICmpEquality()
5674 MaskC->countr_one() == A->getType()->getScalarSizeInBits()) in foldICmpEquality()
5845 Constant *MaskC = ConstantInt::get(X->getType(), C->zext(SrcBits)); in foldICmpWithTrunc() local
5846 Value *And = Builder.CreateAnd(X, MaskC); in foldICmpWithTrunc()
5847 return new ICmpInst(ICmpInst::ICMP_NE, And, MaskC); in foldICmpWithTrunc()
5853 Constant *MaskC = ConstantInt::get(X->getType(), (*C + 1).zext(SrcBits)); in foldICmpWithTrunc() local
5854 Value *And = Builder.CreateAnd(X, MaskC); in foldICmpWithTrunc()
5855 return new ICmpInst(ICmpInst::ICMP_EQ, And, MaskC); in foldICmpWithTrunc()