Lines Matching refs:CI2
800 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) { in ConstantFoldBinaryInstruction() local
803 if (CI2->isZero()) in ConstantFoldBinaryInstruction()
808 if (CI2->isZero()) in ConstantFoldBinaryInstruction()
809 return PoisonValue::get(CI2->getType()); // X / 0 == poison in ConstantFoldBinaryInstruction()
813 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
814 return Constant::getNullValue(CI2->getType()); // X % 1 == 0 in ConstantFoldBinaryInstruction()
815 if (CI2->isZero()) in ConstantFoldBinaryInstruction()
816 return PoisonValue::get(CI2->getType()); // X % 0 == poison in ConstantFoldBinaryInstruction()
819 if (CI2->isZero()) in ConstantFoldBinaryInstruction()
850 unsigned DstWidth = CI2->getBitWidth(); in ConstantFoldBinaryInstruction()
855 if ((CI2->getValue() & BitsNotSet) == CI2->getValue()) in ConstantFoldBinaryInstruction()
856 return Constant::getNullValue(CI2->getType()); in ConstantFoldBinaryInstruction()
862 if (CI2->isMinusOne()) in ConstantFoldBinaryInstruction()
873 assert(CI2->isOne()); in ConstantFoldBinaryInstruction()
891 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) { in ConstantFoldBinaryInstruction() local
893 const APInt &C2V = CI2->getValue(); in ConstantFoldBinaryInstruction()
904 assert(!CI2->isZero() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
907 assert(!CI2->isZero() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
912 assert(!CI2->isZero() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()
915 assert(!CI2->isZero() && "Div by zero handled above"); in ConstantFoldBinaryInstruction()