Lines Matching refs:AP1
1133 const APInt &AP1, in foldICmpShrConstConst() argument
1151 if (AP2.isNegative() != AP1.isNegative()) in foldICmpShrConstConst()
1153 if (AP2.sgt(AP1)) in foldICmpShrConstConst()
1157 if (!AP1) in foldICmpShrConstConst()
1162 if (AP1 == AP2) in foldICmpShrConstConst()
1166 if (IsAShr && AP1.isNegative()) in foldICmpShrConstConst()
1167 Shift = AP1.countLeadingOnes() - AP2.countLeadingOnes(); in foldICmpShrConstConst()
1169 Shift = AP1.countLeadingZeros() - AP2.countLeadingZeros(); in foldICmpShrConstConst()
1172 if (IsAShr && AP1 == AP2.ashr(Shift)) { in foldICmpShrConstConst()
1175 if (AP1.isAllOnesValue() && !AP2.isPowerOf2()) in foldICmpShrConstConst()
1178 } else if (AP1 == AP2.lshr(Shift)) { in foldICmpShrConstConst()
1192 const APInt &AP1, in foldICmpShlConstConst() argument
1208 if (!AP1 && AP2TrailingZeros != 0) in foldICmpShlConstConst()
1213 if (AP1 == AP2) in foldICmpShlConstConst()
1217 int Shift = AP1.countTrailingZeros() - AP2TrailingZeros; in foldICmpShlConstConst()
1219 if (Shift > 0 && AP2.shl(Shift) == AP1) in foldICmpShlConstConst()
3256 const APInt &AP1 = C1->getValue(); in foldICmpBinOp() local
3258 if (AP1.isNegative() == AP2.isNegative()) { in foldICmpBinOp()
3262 ConstantInt *C3 = Builder.getInt(AP1 - AP2); in foldICmpBinOp()
3266 ConstantInt *C3 = Builder.getInt(AP2 - AP1); in foldICmpBinOp()