Lines Matching refs:AP2
1122 APInt AP2 = CI2->getValue(); in FoldICmpCstShrCst() local
1125 if (AP2 == 0) in FoldICmpCstShrCst()
1129 if (AP2.isAllOnesValue()) in FoldICmpCstShrCst()
1131 if (AP2.isNegative() != AP1.isNegative()) in FoldICmpCstShrCst()
1133 if (AP2.sgt(AP1)) in FoldICmpCstShrCst()
1140 ConstantInt::get(A->getType(), AP2.logBase2())); in FoldICmpCstShrCst()
1142 if (AP1 == AP2) in FoldICmpCstShrCst()
1147 Shift = AP1.countLeadingOnes() - AP2.countLeadingOnes(); in FoldICmpCstShrCst()
1149 Shift = AP1.countLeadingZeros() - AP2.countLeadingZeros(); in FoldICmpCstShrCst()
1152 if (IsAShr && AP1 == AP2.ashr(Shift)) { in FoldICmpCstShrCst()
1155 if (AP1.isAllOnesValue() && !AP2.isPowerOf2()) in FoldICmpCstShrCst()
1158 } else if (AP1 == AP2.lshr(Shift)) { in FoldICmpCstShrCst()
1186 APInt AP2 = CI2->getValue(); in FoldICmpCstShlCst() local
1189 if (AP2 == 0) in FoldICmpCstShlCst()
1192 unsigned AP2TrailingZeros = AP2.countTrailingZeros(); in FoldICmpCstShlCst()
1196 ConstantInt::get(A->getType(), AP2.getBitWidth() - AP2TrailingZeros)); in FoldICmpCstShlCst()
1198 if (AP1 == AP2) in FoldICmpCstShlCst()
1204 if (Shift > 0 && AP2.shl(Shift) == AP1) in FoldICmpCstShlCst()
3458 const APInt &AP2 = C2->getValue(); in visitICmpInst() local
3459 if (AP1.isNegative() == AP2.isNegative()) { in visitICmpInst()
3463 ConstantInt *C3 = Builder->getInt(AP1 - AP2); in visitICmpInst()
3467 ConstantInt *C3 = Builder->getInt(AP2 - AP1); in visitICmpInst()