Home
last modified time | relevance | path

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

/external/llvm/lib/Target/Sparc/
DSparcISelDAGToDAG.cpp346 SDValue DivRHS = N->getOperand(1); in Select() local
363 return CurDAG->SelectNodeTo(N, Opcode, MVT::i32, DivLHS, DivRHS, in Select()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp861 ConstantInt *DivRHS) { in FoldICmpDivCst() argument
876 if (DivRHS->isZero()) in FoldICmpDivCst()
878 if (DivIsSigned && DivRHS->isAllOnesValue()) in FoldICmpDivCst()
880 if (DivRHS->isOne()) { in FoldICmpDivCst()
890 Constant *Prod = ConstantExpr::getMul(CmpRHS, DivRHS); in FoldICmpDivCst()
895 bool ProdOV = (DivIsSigned ? ConstantExpr::getSDiv(Prod, DivRHS) : in FoldICmpDivCst()
896 ConstantExpr::getUDiv(Prod, DivRHS)) != CmpRHS; in FoldICmpDivCst()
903 ConstantInt *RangeSize = DivI->isExact() ? getOne(Prod) : DivRHS; in FoldICmpDivCst()
924 } else if (DivRHS->getValue().isStrictlyPositive()) { // Divisor is > 0. in FoldICmpDivCst()
943 } else if (DivRHS->isNegative()) { // Divisor is < 0. in FoldICmpDivCst()
[all …]
DInstCombineInternal.h273 ConstantInt *DivRHS);
275 ConstantInt *DivRHS);