Lines Matching refs:AP1
1149 /// Handle "(icmp eq/ne (ashr/lshr AP2, A), AP1)" ->
1150 /// (icmp eq/ne A, Log2(AP2/AP1)) ->
1151 /// (icmp eq/ne A, Log2(AP2) - Log2(AP1)).
1153 const APInt &AP1,
1171 if (AP2.isNegative() != AP1.isNegative())
1173 if (AP2.sgt(AP1))
1177 if (!AP1)
1182 if (AP1 == AP2)
1186 if (IsAShr && AP1.isNegative())
1187 Shift = AP1.countLeadingOnes() - AP2.countLeadingOnes();
1189 Shift = AP1.countLeadingZeros() - AP2.countLeadingZeros();
1192 if (IsAShr && AP1 == AP2.ashr(Shift)) {
1195 if (AP1.isAllOnesValue() && !AP2.isPowerOf2())
1198 } else if (AP1 == AP2.lshr(Shift)) {
1209 /// Handle "(icmp eq/ne (shl AP2, A), AP1)" ->
1210 /// (icmp eq/ne A, TrailingZeros(AP1) - TrailingZeros(AP2)).
1212 const APInt &AP1,
1228 if (!AP1 && AP2TrailingZeros != 0)
1233 if (AP1 == AP2)
1237 int Shift = AP1.countTrailingZeros() - AP2TrailingZeros;
1239 if (Shift > 0 && AP2.shl(Shift) == AP1)
3876 const APInt &AP1 = C1->getValue();
3878 if (AP1.isNegative() == AP2.isNegative()) {
3882 ConstantInt *C3 = Builder.getInt(AP1 - AP2);
3886 ConstantInt *C3 = Builder.getInt(AP2 - AP1);