Lines Matching refs:MaskC
2001 const APInt *MaskC; in foldICmpOrConstant() local
2002 if (match(OrOp1, m_APInt(MaskC)) && Cmp.isEquality()) { in foldICmpOrConstant()
2003 if (*MaskC == C && (C + 1).isPowerOf2()) { in foldICmpOrConstant()
2016 Value *And = Builder.CreateAnd(OrOp0, ~(*MaskC)); in foldICmpOrConstant()
2017 Constant *NewC = ConstantInt::get(Or->getType(), C ^ (*MaskC)); in foldICmpOrConstant()
2560 Constant *MaskC = ConstantInt::get(Ty, SignMask | (*DivisorC - 1)); in foldICmpSRemConstant() local
2561 Value *And = Builder.CreateAnd(SRem->getOperand(0), MaskC); in foldICmpSRemConstant()
5343 const APInt *MaskC; in foldICmpEquality() local
5344 if (match(Op0, m_And(m_Value(B), m_LowBitMask(MaskC))) && in foldICmpEquality()
5345 MaskC->countr_one() == A->getType()->getScalarSizeInBits()) in foldICmpEquality()
5516 Constant *MaskC = ConstantInt::get(X->getType(), C->zext(SrcBits)); in foldICmpWithTrunc() local
5517 Value *And = Builder.CreateAnd(X, MaskC); in foldICmpWithTrunc()
5518 return new ICmpInst(ICmpInst::ICMP_NE, And, MaskC); in foldICmpWithTrunc()
5524 Constant *MaskC = ConstantInt::get(X->getType(), (*C + 1).zext(SrcBits)); in foldICmpWithTrunc() local
5525 Value *And = Builder.CreateAnd(X, MaskC); in foldICmpWithTrunc()
5526 return new ICmpInst(ICmpInst::ICMP_EQ, And, MaskC); in foldICmpWithTrunc()