Lines Matching refs:AP1
1447 const APInt &AP1 = CI1->getValue(); in FoldICmpCstShrCst() local
1457 if (AP2.isNegative() != AP1.isNegative()) in FoldICmpCstShrCst()
1459 if (AP2.sgt(AP1)) in FoldICmpCstShrCst()
1463 if (!AP1) in FoldICmpCstShrCst()
1468 if (AP1 == AP2) in FoldICmpCstShrCst()
1472 if (IsAShr && AP1.isNegative()) in FoldICmpCstShrCst()
1473 Shift = AP1.countLeadingOnes() - AP2.countLeadingOnes(); in FoldICmpCstShrCst()
1475 Shift = AP1.countLeadingZeros() - AP2.countLeadingZeros(); in FoldICmpCstShrCst()
1478 if (IsAShr && AP1 == AP2.ashr(Shift)) { in FoldICmpCstShrCst()
1481 if (AP1.isAllOnesValue() && !AP2.isPowerOf2()) in FoldICmpCstShrCst()
1484 } else if (AP1 == AP2.lshr(Shift)) { in FoldICmpCstShrCst()
1511 const APInt &AP1 = CI1->getValue(); in FoldICmpCstShlCst() local
1520 if (!AP1 && AP2TrailingZeros != 0) in FoldICmpCstShlCst()
1524 if (AP1 == AP2) in FoldICmpCstShlCst()
1528 int Shift = AP1.countTrailingZeros() - AP2TrailingZeros; in FoldICmpCstShlCst()
1530 if (Shift > 0 && AP2.shl(Shift) == AP1) in FoldICmpCstShlCst()
3909 const APInt &AP1 = C1->getValue(); in visitICmpInst() local
3911 if (AP1.isNegative() == AP2.isNegative()) { in visitICmpInst()
3915 ConstantInt *C3 = Builder->getInt(AP1 - AP2); in visitICmpInst()
3919 ConstantInt *C3 = Builder->getInt(AP2 - AP1); in visitICmpInst()