Home
last modified time | relevance | path

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

/external/swiftshader/third_party/LLVM/lib/Target/Sparc/
DSparcISelDAGToDAG.cpp151 SDValue DivRHS = N->getOperand(1); in Select() local
166 return CurDAG->SelectNodeTo(N, Opcode, MVT::i32, DivLHS, DivRHS, in Select()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCompares.cpp746 ConstantInt *DivRHS) { in FoldICmpDivCst() argument
761 if (DivRHS->isZero()) in FoldICmpDivCst()
763 if (DivIsSigned && DivRHS->isAllOnesValue()) in FoldICmpDivCst()
765 if (DivRHS->isOne()) { in FoldICmpDivCst()
775 Constant *Prod = ConstantExpr::getMul(CmpRHS, DivRHS); in FoldICmpDivCst()
780 bool ProdOV = (DivIsSigned ? ConstantExpr::getSDiv(Prod, DivRHS) : in FoldICmpDivCst()
781 ConstantExpr::getUDiv(Prod, DivRHS)) != CmpRHS; in FoldICmpDivCst()
788 ConstantInt *RangeSize = DivI->isExact() ? getOne(Prod) : DivRHS; in FoldICmpDivCst()
810 } else if (DivRHS->getValue().isStrictlyPositive()) { // Divisor is > 0. in FoldICmpDivCst()
829 } else if (DivRHS->isNegative()) { // Divisor is < 0. in FoldICmpDivCst()
[all …]
DInstCombine.h148 ConstantInt *DivRHS);
150 ConstantInt *DivRHS);
/external/llvm/lib/Target/Sparc/
DSparcISelDAGToDAG.cpp346 SDValue DivRHS = N->getOperand(1); in Select() local
363 CurDAG->SelectNodeTo(N, Opcode, MVT::i32, DivLHS, DivRHS, TopPart); in Select()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineInternal.h276 ConstantInt *DivRHS);
278 ConstantInt *DivRHS);
DInstCombineCompares.cpp1187 ConstantInt *DivRHS) { in FoldICmpDivCst() argument
1202 if (DivRHS->isZero()) in FoldICmpDivCst()
1204 if (DivIsSigned && DivRHS->isAllOnesValue()) in FoldICmpDivCst()
1206 if (DivRHS->isOne()) { in FoldICmpDivCst()
1216 Constant *Prod = ConstantExpr::getMul(CmpRHS, DivRHS); in FoldICmpDivCst()
1221 bool ProdOV = (DivIsSigned ? ConstantExpr::getSDiv(Prod, DivRHS) : in FoldICmpDivCst()
1222 ConstantExpr::getUDiv(Prod, DivRHS)) != CmpRHS; in FoldICmpDivCst()
1229 ConstantInt *RangeSize = DivI->isExact() ? getOne(Prod) : DivRHS; in FoldICmpDivCst()
1250 } else if (DivRHS->getValue().isStrictlyPositive()) { // Divisor is > 0. in FoldICmpDivCst()
1269 } else if (DivRHS->isNegative()) { // Divisor is < 0. in FoldICmpDivCst()
[all …]