Home
last modified time | relevance | path

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

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCompares.cpp758 bool DivIsSigned = DivI->getOpcode() == Instruction::SDiv; in FoldICmpDivCst() local
759 if (!ICI.isEquality() && DivIsSigned != ICI.isSigned()) in FoldICmpDivCst()
763 if (DivIsSigned && DivRHS->isAllOnesValue()) in FoldICmpDivCst()
780 bool ProdOV = (DivIsSigned ? ConstantExpr::getSDiv(Prod, DivRHS) : in FoldICmpDivCst()
800 if (!DivIsSigned) { // udiv in FoldICmpDivCst()
864 return new ICmpInst(DivIsSigned ? ICmpInst::ICMP_SGE : in FoldICmpDivCst()
867 return new ICmpInst(DivIsSigned ? ICmpInst::ICMP_SLT : in FoldICmpDivCst()
870 DivIsSigned, true)); in FoldICmpDivCst()
875 return new ICmpInst(DivIsSigned ? ICmpInst::ICMP_SLT : in FoldICmpDivCst()
878 return new ICmpInst(DivIsSigned ? ICmpInst::ICMP_SGE : in FoldICmpDivCst()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp1199 bool DivIsSigned = DivI->getOpcode() == Instruction::SDiv; in FoldICmpDivCst() local
1200 if (!ICI.isEquality() && DivIsSigned != ICI.isSigned()) in FoldICmpDivCst()
1204 if (DivIsSigned && DivRHS->isAllOnesValue()) in FoldICmpDivCst()
1221 bool ProdOV = (DivIsSigned ? ConstantExpr::getSDiv(Prod, DivRHS) : in FoldICmpDivCst()
1241 if (!DivIsSigned) { // udiv in FoldICmpDivCst()
1304 return new ICmpInst(DivIsSigned ? ICmpInst::ICMP_SGE : in FoldICmpDivCst()
1307 return new ICmpInst(DivIsSigned ? ICmpInst::ICMP_SLT : in FoldICmpDivCst()
1310 DivIsSigned, true)); in FoldICmpDivCst()
1315 return new ICmpInst(DivIsSigned ? ICmpInst::ICMP_SLT : in FoldICmpDivCst()
1318 return new ICmpInst(DivIsSigned ? ICmpInst::ICMP_SGE : in FoldICmpDivCst()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp2129 bool DivIsSigned = Div->getOpcode() == Instruction::SDiv; in foldICmpDivConstant() local
2130 if (!Cmp.isEquality() && DivIsSigned != Cmp.isSigned()) in foldICmpDivConstant()
2138 (DivIsSigned && C2->isAllOnesValue())) in foldICmpDivConstant()
2150 bool ProdOV = (DivIsSigned ? Prod.sdiv(*C2) : Prod.udiv(*C2)) != C; in foldICmpDivConstant()
2168 if (!DivIsSigned) { // udiv in foldICmpDivConstant()
2231 return new ICmpInst(DivIsSigned ? ICmpInst::ICMP_SGE : in foldICmpDivConstant()
2235 return new ICmpInst(DivIsSigned ? ICmpInst::ICMP_SLT : in foldICmpDivConstant()
2239 Cmp, insertRangeTest(X, LoBound, HiBound, DivIsSigned, true)); in foldICmpDivConstant()
2244 return new ICmpInst(DivIsSigned ? ICmpInst::ICMP_SLT : in foldICmpDivConstant()
2248 return new ICmpInst(DivIsSigned ? ICmpInst::ICMP_SGE : in foldICmpDivConstant()
[all …]