Lines Matching refs:AP1
1139 const APInt &AP1, in foldICmpShrConstConst() argument
1157 if (AP2.isNegative() != AP1.isNegative()) in foldICmpShrConstConst()
1159 if (AP2.sgt(AP1)) in foldICmpShrConstConst()
1163 if (!AP1) in foldICmpShrConstConst()
1168 if (AP1 == AP2) in foldICmpShrConstConst()
1172 if (IsAShr && AP1.isNegative()) in foldICmpShrConstConst()
1173 Shift = AP1.countLeadingOnes() - AP2.countLeadingOnes(); in foldICmpShrConstConst()
1175 Shift = AP1.countLeadingZeros() - AP2.countLeadingZeros(); in foldICmpShrConstConst()
1178 if (IsAShr && AP1 == AP2.ashr(Shift)) { in foldICmpShrConstConst()
1181 if (AP1.isAllOnesValue() && !AP2.isPowerOf2()) in foldICmpShrConstConst()
1184 } else if (AP1 == AP2.lshr(Shift)) { in foldICmpShrConstConst()
1198 const APInt &AP1, in foldICmpShlConstConst() argument
1214 if (!AP1 && AP2TrailingZeros != 0) in foldICmpShlConstConst()
1219 if (AP1 == AP2) in foldICmpShlConstConst()
1223 int Shift = AP1.countTrailingZeros() - AP2TrailingZeros; in foldICmpShlConstConst()
1225 if (Shift > 0 && AP2.shl(Shift) == AP1) in foldICmpShlConstConst()
3997 const APInt &AP1 = C1->getValue(); in foldICmpBinOp() local
3999 if (AP1.isNegative() == AP2.isNegative()) { in foldICmpBinOp()
4003 ConstantInt *C3 = Builder.getInt(AP1 - AP2); in foldICmpBinOp()
4004 bool HasNUW = BO0->hasNoUnsignedWrap() && C3->getValue().ule(AP1); in foldICmpBinOp()
4009 ConstantInt *C3 = Builder.getInt(AP2 - AP1); in foldICmpBinOp()