Lines Matching refs:AP1

962                                                      const APInt &AP1,  in foldICmpShrConstConst()  argument
980 if (AP2.isNegative() != AP1.isNegative()) in foldICmpShrConstConst()
982 if (AP2.sgt(AP1)) in foldICmpShrConstConst()
986 if (!AP1) in foldICmpShrConstConst()
991 if (AP1 == AP2) in foldICmpShrConstConst()
995 if (IsAShr && AP1.isNegative()) in foldICmpShrConstConst()
996 Shift = AP1.countl_one() - AP2.countl_one(); in foldICmpShrConstConst()
998 Shift = AP1.countl_zero() - AP2.countl_zero(); in foldICmpShrConstConst()
1001 if (IsAShr && AP1 == AP2.ashr(Shift)) { in foldICmpShrConstConst()
1004 if (AP1.isAllOnes() && !AP2.isPowerOf2()) in foldICmpShrConstConst()
1007 } else if (AP1 == AP2.lshr(Shift)) { in foldICmpShrConstConst()
1021 const APInt &AP1, in foldICmpShlConstConst() argument
1037 if (!AP1 && AP2TrailingZeros != 0) in foldICmpShlConstConst()
1042 if (AP1 == AP2) in foldICmpShlConstConst()
1046 int Shift = AP1.countr_zero() - AP2TrailingZeros; in foldICmpShlConstConst()
1048 if (Shift > 0 && AP2.shl(Shift) == AP1) in foldICmpShlConstConst()
4774 const APInt *AP1, *AP2; in foldICmpBinOp() local
4777 if (match(B, m_APIntAllowUndef(AP1)) && match(D, m_APIntAllowUndef(AP2)) && in foldICmpBinOp()
4778 AP1->isNegative() == AP2->isNegative()) { in foldICmpBinOp()
4779 APInt AP1Abs = AP1->abs(); in foldICmpBinOp()
4782 APInt Diff = *AP1 - *AP2; in foldICmpBinOp()
4785 A, C3, "", Op0HasNUW && Diff.ule(*AP1), Op0HasNSW); in foldICmpBinOp()
4788 APInt Diff = *AP2 - *AP1; in foldICmpBinOp()
5351 const APInt *AP1, *AP2; in foldICmpEquality() local
5352 if ((match(Op0, m_OneUse(m_LShr(m_Value(A), m_APIntAllowUndef(AP1)))) && in foldICmpEquality()
5354 (match(Op0, m_OneUse(m_AShr(m_Value(A), m_APIntAllowUndef(AP1)))) && in foldICmpEquality()
5356 if (AP1 != AP2) in foldICmpEquality()
5358 unsigned TypeBits = AP1->getBitWidth(); in foldICmpEquality()
5359 unsigned ShAmt = AP1->getLimitedValue(TypeBits); in foldICmpEquality()