Searched refs:C2V (Results 1 – 1 of 1) sorted by relevance
799 const APInt &C2V = CI2->getValue(); in ConstantFoldBinaryInstruction() local804 return ConstantInt::get(C1->getType(), C1V + C2V); in ConstantFoldBinaryInstruction()806 return ConstantInt::get(C1->getType(), C1V - C2V); in ConstantFoldBinaryInstruction()808 return ConstantInt::get(C1->getType(), C1V * C2V); in ConstantFoldBinaryInstruction()811 return ConstantInt::get(CI1->getType(), C1V.udiv(C2V)); in ConstantFoldBinaryInstruction()814 if (C2V.isAllOnes() && C1V.isMinSignedValue()) in ConstantFoldBinaryInstruction()816 return ConstantInt::get(CI1->getType(), C1V.sdiv(C2V)); in ConstantFoldBinaryInstruction()819 return ConstantInt::get(C1->getType(), C1V.urem(C2V)); in ConstantFoldBinaryInstruction()822 if (C2V.isAllOnes() && C1V.isMinSignedValue()) in ConstantFoldBinaryInstruction()824 return ConstantInt::get(C1->getType(), C1V.srem(C2V)); in ConstantFoldBinaryInstruction()[all …]