Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp2162 bool DivIsSigned = Div->getOpcode() == Instruction::SDiv; in foldICmpDivConstant() local
2163 if (!Cmp.isEquality() && DivIsSigned != Cmp.isSigned()) in foldICmpDivConstant()
2171 (DivIsSigned && C2->isAllOnesValue())) in foldICmpDivConstant()
2183 bool ProdOV = (DivIsSigned ? Prod.sdiv(*C2) : Prod.udiv(*C2)) != C; in foldICmpDivConstant()
2201 if (!DivIsSigned) { // udiv in foldICmpDivConstant()
2264 return new ICmpInst(DivIsSigned ? ICmpInst::ICMP_SGE : in foldICmpDivConstant()
2268 return new ICmpInst(DivIsSigned ? ICmpInst::ICMP_SLT : in foldICmpDivConstant()
2272 Cmp, insertRangeTest(X, LoBound, HiBound, DivIsSigned, true)); in foldICmpDivConstant()
2277 return new ICmpInst(DivIsSigned ? ICmpInst::ICMP_SLT : in foldICmpDivConstant()
2281 return new ICmpInst(DivIsSigned ? ICmpInst::ICMP_SGE : in foldICmpDivConstant()
[all …]