• Home
  • Raw
  • Download

Lines Matching refs:CI2

1232   if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) {  in ConstantFoldBinaryInstruction()  local
1235 if (CI2->isZero()) return C1; // X + 0 == X in ConstantFoldBinaryInstruction()
1238 if (CI2->isZero()) return C1; // X - 0 == X in ConstantFoldBinaryInstruction()
1241 if (CI2->isZero()) return C2; // X * 0 == 0 in ConstantFoldBinaryInstruction()
1242 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
1247 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
1249 if (CI2->isZero()) in ConstantFoldBinaryInstruction()
1250 return PoisonValue::get(CI2->getType()); // X / 0 == poison in ConstantFoldBinaryInstruction()
1254 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
1255 return Constant::getNullValue(CI2->getType()); // X % 1 == 0 in ConstantFoldBinaryInstruction()
1256 if (CI2->isZero()) in ConstantFoldBinaryInstruction()
1257 return PoisonValue::get(CI2->getType()); // X % 0 == poison in ConstantFoldBinaryInstruction()
1260 if (CI2->isZero()) return C2; // X & 0 == 0 in ConstantFoldBinaryInstruction()
1261 if (CI2->isMinusOne()) in ConstantFoldBinaryInstruction()
1267 unsigned DstWidth = CI2->getType()->getBitWidth(); in ConstantFoldBinaryInstruction()
1271 if ((PossiblySetBits & CI2->getValue()) == PossiblySetBits) in ConstantFoldBinaryInstruction()
1306 unsigned DstWidth = CI2->getType()->getBitWidth(); in ConstantFoldBinaryInstruction()
1311 if ((CI2->getValue() & BitsNotSet) == CI2->getValue()) in ConstantFoldBinaryInstruction()
1312 return Constant::getNullValue(CI2->getType()); in ConstantFoldBinaryInstruction()
1318 if (CI2->isZero()) return C1; // X | 0 == X in ConstantFoldBinaryInstruction()
1319 if (CI2->isMinusOne()) in ConstantFoldBinaryInstruction()
1323 if (CI2->isZero()) return C1; // X ^ 0 == X in ConstantFoldBinaryInstruction()
1331 assert(CI2->isOne()); in ConstantFoldBinaryInstruction()
1353 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) { in ConstantFoldBinaryInstruction() local
1355 const APInt &C2V = CI2->getValue(); in ConstantFoldBinaryInstruction()
1366 assert(!CI2->isZero() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
1369 assert(!CI2->isZero() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
1374 assert(!CI2->isZero() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
1377 assert(!CI2->isZero() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()