Lines Matching refs:AP1
1121 APInt AP1 = CI1->getValue(); in FoldICmpCstShrCst() local
1131 if (AP2.isNegative() != AP1.isNegative()) in FoldICmpCstShrCst()
1133 if (AP2.sgt(AP1)) in FoldICmpCstShrCst()
1137 if (!AP1) in FoldICmpCstShrCst()
1142 if (AP1 == AP2) in FoldICmpCstShrCst()
1146 if (IsAShr && AP1.isNegative()) 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()
1185 APInt AP1 = CI1->getValue(); in FoldICmpCstShlCst() local
1194 if (!AP1 && AP2TrailingZeros != 0) in FoldICmpCstShlCst()
1198 if (AP1 == AP2) in FoldICmpCstShlCst()
1202 int Shift = AP1.countTrailingZeros() - AP2TrailingZeros; in FoldICmpCstShlCst()
1204 if (Shift > 0 && AP2.shl(Shift) == AP1) in FoldICmpCstShlCst()
3457 const APInt &AP1 = C1->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()