Lines Matching refs:AP2
1140 const APInt &AP2) { in foldICmpShrConstConst() argument
1150 if (AP2.isNullValue()) in foldICmpShrConstConst()
1155 if (AP2.isAllOnesValue()) in foldICmpShrConstConst()
1157 if (AP2.isNegative() != AP1.isNegative()) in foldICmpShrConstConst()
1159 if (AP2.sgt(AP1)) in foldICmpShrConstConst()
1166 ConstantInt::get(A->getType(), AP2.logBase2())); in foldICmpShrConstConst()
1168 if (AP1 == AP2) 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()
1199 const APInt &AP2) { in foldICmpShlConstConst() argument
1209 if (AP2.isNullValue()) in foldICmpShlConstConst()
1212 unsigned AP2TrailingZeros = AP2.countTrailingZeros(); in foldICmpShlConstConst()
1217 ConstantInt::get(A->getType(), AP2.getBitWidth() - AP2TrailingZeros)); in foldICmpShlConstConst()
1219 if (AP1 == AP2) in foldICmpShlConstConst()
1225 if (Shift > 0 && AP2.shl(Shift) == AP1) in foldICmpShlConstConst()
3998 const APInt &AP2 = C2->getValue(); in foldICmpBinOp() local
3999 if (AP1.isNegative() == AP2.isNegative()) { in foldICmpBinOp()
4003 ConstantInt *C3 = Builder.getInt(AP1 - AP2); in foldICmpBinOp()
4009 ConstantInt *C3 = Builder.getInt(AP2 - AP1); in foldICmpBinOp()
4010 bool HasNUW = BO1->hasNoUnsignedWrap() && C3->getValue().ule(AP2); in foldICmpBinOp()