Lines Matching refs:CI2
1173 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) {
1176 if (CI2->isZero()) return C1; // X + 0 == X
1179 if (CI2->isZero()) return C1; // X - 0 == X
1182 if (CI2->isZero()) return C2; // X * 0 == 0
1183 if (CI2->isOne())
1188 if (CI2->isOne())
1190 if (CI2->isZero())
1191 return UndefValue::get(CI2->getType()); // X / 0 == undef
1195 if (CI2->isOne())
1196 return Constant::getNullValue(CI2->getType()); // X % 1 == 0
1197 if (CI2->isZero())
1198 return UndefValue::get(CI2->getType()); // X % 0 == undef
1201 if (CI2->isZero()) return C2; // X & 0 == 0
1202 if (CI2->isMinusOne())
1208 unsigned DstWidth = CI2->getType()->getBitWidth();
1212 if ((PossiblySetBits & CI2->getValue()) == PossiblySetBits)
1247 unsigned DstWidth = CI2->getType()->getBitWidth();
1252 if ((CI2->getValue() & BitsNotSet) == CI2->getValue())
1253 return Constant::getNullValue(CI2->getType());
1259 if (CI2->isZero()) return C1; // X | 0 == X
1260 if (CI2->isMinusOne())
1264 if (CI2->isZero()) return C1; // X ^ 0 == X
1272 assert(CI2->isOne());
1294 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) {
1296 const APInt &C2V = CI2->getValue();
1307 assert(!CI2->isZero() && "Div by zero handled above");
1310 assert(!CI2->isZero() && "Div by zero handled above");
1315 assert(!CI2->isZero() && "Div by zero handled above");
1318 assert(!CI2->isZero() && "Div by zero handled above");