Home
last modified time | relevance | path

Searched refs:C1V (Results 1 – 1 of 1) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp798 const APInt &C1V = CI1->getValue(); in ConstantFoldBinaryInstruction() local
804 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 …]