Lines Matching refs:N0

3536 TargetLowering::buildLegalVectorShuffle(EVT VT, const SDLoc &DL, SDValue N0,  in buildLegalVectorShuffle()  argument
3541 std::swap(N0, N1); in buildLegalVectorShuffle()
3549 return DAG.getVectorShuffle(VT, DL, N0, N1, Mask); in buildLegalVectorShuffle()
3672 SDValue TargetLowering::foldSetCCWithAnd(EVT VT, SDValue N0, SDValue N1, in foldSetCCWithAnd() argument
3675 if (N1.getOpcode() == ISD::AND && N0.getOpcode() != ISD::AND) in foldSetCCWithAnd()
3676 std::swap(N0, N1); in foldSetCCWithAnd()
3679 EVT OpVT = N0.getValueType(); in foldSetCCWithAnd()
3680 if (N0.getOpcode() != ISD::AND || !OpVT.isInteger() || in foldSetCCWithAnd()
3691 if (DAG.MaskedValueIsZero(N0, UpperBits)) in foldSetCCWithAnd()
3692 return DAG.getBoolExtOrTrunc(N0, DL, VT, OpVT); in foldSetCCWithAnd()
3699 if (N0.getOperand(0) == N1) { in foldSetCCWithAnd()
3700 X = N0.getOperand(1); in foldSetCCWithAnd()
3701 Y = N0.getOperand(0); in foldSetCCWithAnd()
3702 } else if (N0.getOperand(1) == N1) { in foldSetCCWithAnd()
3703 X = N0.getOperand(0); in foldSetCCWithAnd()
3704 Y = N0.getOperand(1); in foldSetCCWithAnd()
3718 isCondCodeLegal(Cond, N0.getSimpleValueType())) in foldSetCCWithAnd()
3719 return DAG.getSetCC(DL, VT, N0, Zero, Cond); in foldSetCCWithAnd()
3720 } else if (N0.hasOneUse() && hasAndNotCompare(Y)) { in foldSetCCWithAnd()
3735 SDValue NewAnd = DAG.getNode(ISD::AND, SDLoc(N0), OpVT, NotX, Y); in foldSetCCWithAnd()
3753 EVT SCCVT, SDValue N0, SDValue N1, ISD::CondCode Cond, DAGCombinerInfo &DCI, in optimizeSetCCOfSignedTruncationCheck() argument
3761 if (N0->getOpcode() != ISD::ADD) in optimizeSetCCOfSignedTruncationCheck()
3766 if (!(C01 = dyn_cast<ConstantSDNode>(N0->getOperand(1)))) in optimizeSetCCOfSignedTruncationCheck()
3769 SDValue X = N0->getOperand(0); in optimizeSetCCOfSignedTruncationCheck()
3842 EVT SCCVT, SDValue N0, SDValue N1C, ISD::CondCode Cond, in optimizeSetCCByHoistingAndByConstFromLogicalShift() argument
3888 if (N0.getOpcode() != ISD::AND || !N0.hasOneUse()) in optimizeSetCCByHoistingAndByConstFromLogicalShift()
3891 X = N0.getOperand(0); in optimizeSetCCByHoistingAndByConstFromLogicalShift()
3892 SDValue Mask = N0.getOperand(1); in optimizeSetCCByHoistingAndByConstFromLogicalShift()
3914 SDValue TargetLowering::foldSetCCWithBinOp(EVT VT, SDValue N0, SDValue N1, in foldSetCCWithBinOp() argument
3917 unsigned BOpcode = N0.getOpcode(); in foldSetCCWithBinOp()
3926 EVT OpVT = N0.getValueType(); in foldSetCCWithBinOp()
3927 SDValue X = N0.getOperand(0); in foldSetCCWithBinOp()
3928 SDValue Y = N0.getOperand(1); in foldSetCCWithBinOp()
3941 if (!N0.hasOneUse() || OpVT.getScalarSizeInBits() == 1) in foldSetCCWithBinOp()
3955 SDValue N0, const APInt &C1, in simplifySetCCWithCTPOP() argument
3960 SDValue CTPOP = N0; in simplifySetCCWithCTPOP()
3961 if (N0.getOpcode() == ISD::TRUNCATE && N0.hasOneUse() && !VT.isVector() && in simplifySetCCWithCTPOP()
3962 N0.getScalarValueSizeInBits() > Log2_32(N0.getOperand(0).getScalarValueSizeInBits())) in simplifySetCCWithCTPOP()
3963 CTPOP = N0.getOperand(0); in simplifySetCCWithCTPOP()
4022 static SDValue foldSetCCWithRotate(EVT VT, SDValue N0, SDValue N1, in foldSetCCWithRotate() argument
4041 if (SDValue R = getRotateSource(N0)) in foldSetCCWithRotate()
4050 EVT OpVT = N0.getValueType(); in foldSetCCWithRotate()
4051 if (N0.hasOneUse() && N0.getOpcode() == ISD::OR && C1->isZero()) { in foldSetCCWithRotate()
4052 if (SDValue R = getRotateSource(N0.getOperand(0))) { in foldSetCCWithRotate()
4053 SDValue NewOr = DAG.getNode(ISD::OR, dl, OpVT, R, N0.getOperand(1)); in foldSetCCWithRotate()
4056 if (SDValue R = getRotateSource(N0.getOperand(1))) { in foldSetCCWithRotate()
4057 SDValue NewOr = DAG.getNode(ISD::OR, dl, OpVT, R, N0.getOperand(0)); in foldSetCCWithRotate()
4065 static SDValue foldSetCCWithFunnelShift(EVT VT, SDValue N0, SDValue N1, in foldSetCCWithFunnelShift() argument
4077 if (!N0.hasOneUse() || in foldSetCCWithFunnelShift()
4078 (N0.getOpcode() != ISD::FSHL && N0.getOpcode() != ISD::FSHR)) in foldSetCCWithFunnelShift()
4081 unsigned BitWidth = N0.getScalarValueSizeInBits(); in foldSetCCWithFunnelShift()
4082 auto *ShAmtC = isConstOrConstSplat(N0.getOperand(2)); in foldSetCCWithFunnelShift()
4088 if (N0.getOpcode() == ISD::FSHR) in foldSetCCWithFunnelShift()
4109 EVT OpVT = N0.getValueType(); in foldSetCCWithFunnelShift()
4110 EVT ShAmtVT = N0.getOperand(2).getValueType(); in foldSetCCWithFunnelShift()
4111 SDValue F0 = N0.getOperand(0); in foldSetCCWithFunnelShift()
4112 SDValue F1 = N0.getOperand(1); in foldSetCCWithFunnelShift()
4133 SDValue TargetLowering::SimplifySetCC(EVT VT, SDValue N0, SDValue N1, in SimplifySetCC() argument
4139 EVT OpVT = N0.getValueType(); in SimplifySetCC()
4142 if (SDValue Fold = DAG.FoldSetCC(VT, N0, N1, Cond, dl)) in SimplifySetCC()
4146 isConstOrConstSplat(N0, /*AllowUndefs*/ false, /*AllowTruncate*/ true); in SimplifySetCC()
4157 isCondCodeLegal(SwappedCC, N0.getSimpleValueType()))) in SimplifySetCC()
4158 return DAG.getSetCC(dl, VT, N1, N0, SwappedCC); in SimplifySetCC()
4166 isCondCodeLegal(SwappedCC, N0.getSimpleValueType())) && in SimplifySetCC()
4167 DAG.doesNodeExist(ISD::SUB, DAG.getVTList(OpVT), {N1, N0}) && in SimplifySetCC()
4168 !DAG.doesNodeExist(ISD::SUB, DAG.getVTList(OpVT), {N0, N1})) in SimplifySetCC()
4169 return DAG.getSetCC(dl, VT, N1, N0, SwappedCC); in SimplifySetCC()
4171 if (SDValue V = foldSetCCWithRotate(VT, N0, N1, Cond, dl, DAG)) in SimplifySetCC()
4174 if (SDValue V = foldSetCCWithFunnelShift(VT, N0, N1, Cond, dl, DAG)) in SimplifySetCC()
4181 if (SDValue V = simplifySetCCWithCTPOP(*this, VT, N0, C1, Cond, dl, DAG)) in SimplifySetCC()
4187 if (N0.getOpcode() == ISD::SRL && (C1.isZero() || C1.isOne()) && in SimplifySetCC()
4188 N0.getOperand(0).getOpcode() == ISD::CTLZ && in SimplifySetCC()
4189 isPowerOf2_32(N0.getScalarValueSizeInBits())) { in SimplifySetCC()
4190 if (ConstantSDNode *ShAmt = isConstOrConstSplat(N0.getOperand(1))) { in SimplifySetCC()
4192 ShAmt->getAPIntValue() == Log2_32(N0.getScalarValueSizeInBits())) { in SimplifySetCC()
4202 SDValue Zero = DAG.getConstant(0, dl, N0.getValueType()); in SimplifySetCC()
4203 return DAG.getSetCC(dl, VT, N0.getOperand(0).getOperand(0), Zero, in SimplifySetCC()
4217 DCI.isBeforeLegalize() && N0->hasOneUse()) { in SimplifySetCC()
4218 unsigned MinBits = N0.getValueSizeInBits(); in SimplifySetCC()
4221 if (N0->getOpcode() == ISD::ZERO_EXTEND) { in SimplifySetCC()
4223 MinBits = N0->getOperand(0).getValueSizeInBits(); in SimplifySetCC()
4224 PreExt = N0->getOperand(0); in SimplifySetCC()
4225 } else if (N0->getOpcode() == ISD::AND) { in SimplifySetCC()
4227 if (auto *C = dyn_cast<ConstantSDNode>(N0->getOperand(1))) in SimplifySetCC()
4230 PreExt = N0->getOperand(0); in SimplifySetCC()
4232 } else if (N0->getOpcode() == ISD::SIGN_EXTEND) { in SimplifySetCC()
4234 MinBits = N0->getOperand(0).getValueSizeInBits(); in SimplifySetCC()
4235 PreExt = N0->getOperand(0); in SimplifySetCC()
4237 } else if (auto *LN0 = dyn_cast<LoadSDNode>(N0)) { in SimplifySetCC()
4241 PreExt = N0; in SimplifySetCC()
4245 PreExt = N0; in SimplifySetCC()
4276 SDValue TopSetCC = N0->getOperand(0); in SimplifySetCC()
4277 unsigned N0Opc = N0->getOpcode(); in SimplifySetCC()
4283 isExtendedTrueVal(N1C, N0->getValueType(0), SExt))) { in SimplifySetCC()
4306 N0.getOpcode() == ISD::AND && C1 == 0 && in SimplifySetCC()
4307 N0.getNode()->hasOneUse() && in SimplifySetCC()
4308 isa<LoadSDNode>(N0.getOperand(0)) && in SimplifySetCC()
4309 N0.getOperand(0).getNode()->hasOneUse() && in SimplifySetCC()
4310 isa<ConstantSDNode>(N0.getOperand(1))) { in SimplifySetCC()
4311 LoadSDNode *Lod = cast<LoadSDNode>(N0.getOperand(0)); in SimplifySetCC()
4315 unsigned origWidth = N0.getValueSizeInBits(); in SimplifySetCC()
4321 const APInt &Mask = N0.getConstantOperandAPInt(1); in SimplifySetCC()
4360 if (N0.getOpcode() == ISD::ZERO_EXTEND) { in SimplifySetCC()
4361 unsigned InSize = N0.getOperand(0).getValueSizeInBits(); in SimplifySetCC()
4397 EVT newVT = N0.getOperand(0).getValueType(); in SimplifySetCC()
4404 SDValue NewSetCC = DAG.getSetCC(dl, NewSetCCVT, N0.getOperand(0), in SimplifySetCC()
4406 return DAG.getBoolExtOrTrunc(NewSetCC, dl, VT, N0.getValueType()); in SimplifySetCC()
4413 } else if (N0.getOpcode() == ISD::SIGN_EXTEND_INREG && in SimplifySetCC()
4415 !isSExtCheaperThanZExt(cast<VTSDNode>(N0.getOperand(1))->getVT(), in SimplifySetCC()
4417 EVT ExtSrcTy = cast<VTSDNode>(N0.getOperand(1))->getVT(); in SimplifySetCC()
4419 EVT ExtDstTy = N0.getValueType(); in SimplifySetCC()
4427 assert(ExtDstTy == N0.getOperand(0).getValueType() && in SimplifySetCC()
4430 SDValue ZextOp = DAG.getNode(ISD::AND, dl, ExtDstTy, N0.getOperand(0), in SimplifySetCC()
4440 if (N0.getOpcode() == ISD::SETCC && in SimplifySetCC()
4441 isTypeLegal(VT) && VT.bitsLE(N0.getValueType()) && in SimplifySetCC()
4442 (N0.getValueType() == MVT::i1 || in SimplifySetCC()
4443 getBooleanContents(N0.getOperand(0).getValueType()) == in SimplifySetCC()
4447 return DAG.getNode(ISD::TRUNCATE, dl, VT, N0); in SimplifySetCC()
4449 ISD::CondCode CC = cast<CondCodeSDNode>(N0.getOperand(2))->get(); in SimplifySetCC()
4450 CC = ISD::getSetCCInverse(CC, N0.getOperand(0).getValueType()); in SimplifySetCC()
4452 isCondCodeLegal(CC, N0.getOperand(0).getSimpleValueType())) in SimplifySetCC()
4453 return DAG.getSetCC(dl, VT, N0.getOperand(0), N0.getOperand(1), CC); in SimplifySetCC()
4456 if ((N0.getOpcode() == ISD::XOR || in SimplifySetCC()
4457 (N0.getOpcode() == ISD::AND && in SimplifySetCC()
4458 N0.getOperand(0).getOpcode() == ISD::XOR && in SimplifySetCC()
4459 N0.getOperand(1) == N0.getOperand(0).getOperand(1))) && in SimplifySetCC()
4460 isOneConstant(N0.getOperand(1))) { in SimplifySetCC()
4463 unsigned BitWidth = N0.getValueSizeInBits(); in SimplifySetCC()
4464 if (DAG.MaskedValueIsZero(N0, in SimplifySetCC()
4469 if (N0.getOpcode() == ISD::XOR) { in SimplifySetCC()
4470 Val = N0.getOperand(0); in SimplifySetCC()
4472 assert(N0.getOpcode() == ISD::AND && in SimplifySetCC()
4473 N0.getOperand(0).getOpcode() == ISD::XOR); in SimplifySetCC()
4475 Val = DAG.getNode(ISD::AND, dl, N0.getValueType(), in SimplifySetCC()
4476 N0.getOperand(0).getOperand(0), in SimplifySetCC()
4477 N0.getOperand(1)); in SimplifySetCC()
4484 SDValue Op0 = N0; in SimplifySetCC()
4531 if (N0.getOpcode() == ISD::UREM && N1C->isZero() && in SimplifySetCC()
4533 KnownBits XKnown = DAG.computeKnownBits(N0.getOperand(0)); in SimplifySetCC()
4534 KnownBits YKnown = DAG.computeKnownBits(N0.getOperand(1)); in SimplifySetCC()
4536 return DAG.getSetCC(dl, VT, N0.getOperand(0), N1, Cond); in SimplifySetCC()
4542 N0.getOpcode() == ISD::SRA && isa<ConstantSDNode>(N0.getOperand(1)) && in SimplifySetCC()
4543 N0.getConstantOperandAPInt(1) == OpVT.getScalarSizeInBits() - 1 && in SimplifySetCC()
4545 return DAG.getSetCC(dl, VT, N0.getOperand(0), in SimplifySetCC()
4551 optimizeSetCCOfSignedTruncationCheck(VT, N0, N1, Cond, DCI, dl)) in SimplifySetCC()
4584 return DAG.getSetCC(dl, VT, N0, in SimplifySetCC()
4604 return DAG.getSetCC(dl, VT, N0, in SimplifySetCC()
4619 return DAG.getSetCC(dl, VT, N0, N1, ISD::SETNE); in SimplifySetCC()
4623 return DAG.getSetCC(dl, VT, N0, in SimplifySetCC()
4624 DAG.getConstant(MinVal, dl, N0.getValueType()), in SimplifySetCC()
4637 return DAG.getSetCC(dl, VT, N0, N1, ISD::SETNE); in SimplifySetCC()
4641 return DAG.getSetCC(dl, VT, N0, in SimplifySetCC()
4642 DAG.getConstant(MaxVal, dl, N0.getValueType()), in SimplifySetCC()
4651 VT, N0, N1, Cond, DCI, dl)) in SimplifySetCC()
4660 if ((CmpZero || CmpNegOne) && N0.hasOneUse()) { in SimplifySetCC()
4690 unsigned EltBits = N0.getScalarValueSizeInBits(); in SimplifySetCC()
4702 if (IsConcat(N0, Lo, Hi)) in SimplifySetCC()
4705 if (N0.getOpcode() == ISD::AND || N0.getOpcode() == ISD::OR) { in SimplifySetCC()
4707 if (IsConcat(N0.getOperand(0), Lo0, Hi0) && in SimplifySetCC()
4708 IsConcat(N0.getOperand(1), Lo1, Hi1)) { in SimplifySetCC()
4709 return MergeConcat(DAG.getNode(N0.getOpcode(), dl, OpVT, Lo0, Lo1), in SimplifySetCC()
4710 DAG.getNode(N0.getOpcode(), dl, OpVT, Hi0, Hi1)); in SimplifySetCC()
4724 return DAG.getSetCC(dl, VT, N0, in SimplifySetCC()
4732 return DAG.getSetCC(dl, VT, N0, in SimplifySetCC()
4743 EVT ShValTy = N0.getValueType(); in SimplifySetCC()
4750 getBooleanContents(N0.getValueType()) == ZeroOrOneBooleanContent) && in SimplifySetCC()
4753 N0.getOpcode() == ISD::AND) { in SimplifySetCC()
4754 if (auto *AndRHS = dyn_cast<ConstantSDNode>(N0.getOperand(1))) { in SimplifySetCC()
4763 DAG.getNode(ISD::SRL, dl, ShValTy, N0, in SimplifySetCC()
4773 DAG.getNode(ISD::SRL, dl, ShValTy, N0, in SimplifySetCC()
4785 N0.getOpcode() == ISD::AND && N0.hasOneUse()) { in SimplifySetCC()
4786 if (auto *AndRHS = dyn_cast<ConstantSDNode>(N0.getOperand(1))) { in SimplifySetCC()
4792 DAG.getNode(ISD::SRL, dl, ShValTy, N0.getOperand(0), in SimplifySetCC()
4820 SDValue Shift = DAG.getNode(ISD::SRL, dl, ShValTy, N0, in SimplifySetCC()
4829 if (!isa<ConstantFPSDNode>(N0) && isa<ConstantFPSDNode>(N1)) { in SimplifySetCC()
4838 return DAG.getSetCC(dl, VT, N0, N0, Cond); in SimplifySetCC()
4841 if (N0.getOpcode() == ISD::FNEG) { in SimplifySetCC()
4844 isCondCodeLegal(SwapCond, N0.getSimpleValueType())) { in SimplifySetCC()
4845 SDValue NegN1 = DAG.getNode(ISD::FNEG, dl, N0.getValueType(), N1); in SimplifySetCC()
4846 return DAG.getSetCC(dl, VT, N0.getOperand(0), NegN1, SwapCond); in SimplifySetCC()
4852 if (!isCondCodeLegal(Cond, N0.getSimpleValueType())) { in SimplifySetCC()
4867 isCondCodeLegal(NewCond, N0.getSimpleValueType())) in SimplifySetCC()
4868 return DAG.getSetCC(dl, VT, N0, N1, NewCond); in SimplifySetCC()
4873 if (N0 == N1) { in SimplifySetCC()
4876 assert(!N0.getValueType().isInteger() && in SimplifySetCC()
4890 isCondCodeLegal(NewCond, N0.getSimpleValueType()))) in SimplifySetCC()
4891 return DAG.getSetCC(dl, VT, N0, N1, NewCond); in SimplifySetCC()
4895 N0.getValueType().isInteger()) { in SimplifySetCC()
4896 if (N0.getOpcode() == ISD::ADD || N0.getOpcode() == ISD::SUB || in SimplifySetCC()
4897 N0.getOpcode() == ISD::XOR) { in SimplifySetCC()
4899 if (N0.getOpcode() == N1.getOpcode()) { in SimplifySetCC()
4900 if (N0.getOperand(0) == N1.getOperand(0)) in SimplifySetCC()
4901 return DAG.getSetCC(dl, VT, N0.getOperand(1), N1.getOperand(1), Cond); in SimplifySetCC()
4902 if (N0.getOperand(1) == N1.getOperand(1)) in SimplifySetCC()
4903 return DAG.getSetCC(dl, VT, N0.getOperand(0), N1.getOperand(0), Cond); in SimplifySetCC()
4904 if (isCommutativeBinOp(N0.getOpcode())) { in SimplifySetCC()
4906 if (N0.getOperand(0) == N1.getOperand(1)) in SimplifySetCC()
4907 return DAG.getSetCC(dl, VT, N0.getOperand(1), N1.getOperand(0), in SimplifySetCC()
4909 if (N0.getOperand(1) == N1.getOperand(0)) in SimplifySetCC()
4910 return DAG.getSetCC(dl, VT, N0.getOperand(0), N1.getOperand(1), in SimplifySetCC()
4920 if (auto *LHSR = dyn_cast<ConstantSDNode>(N0.getOperand(1))) { in SimplifySetCC()
4922 if (N0.getOpcode() == ISD::ADD && N0.getNode()->hasOneUse()) in SimplifySetCC()
4924 dl, VT, N0.getOperand(0), in SimplifySetCC()
4926 dl, N0.getValueType()), in SimplifySetCC()
4930 if (N0.getOpcode() == ISD::XOR && N0.getNode()->hasOneUse()) in SimplifySetCC()
4932 dl, VT, N0.getOperand(0), in SimplifySetCC()
4934 dl, N0.getValueType()), in SimplifySetCC()
4939 if (auto *SUBC = dyn_cast<ConstantSDNode>(N0.getOperand(0))) in SimplifySetCC()
4940 if (N0.getOpcode() == ISD::SUB && N0.getNode()->hasOneUse()) in SimplifySetCC()
4942 dl, VT, N0.getOperand(1), in SimplifySetCC()
4944 dl, N0.getValueType()), in SimplifySetCC()
4956 if (!LegalRHSImm || N0.hasOneUse()) in SimplifySetCC()
4957 if (SDValue V = foldSetCCWithBinOp(VT, N0, N1, Cond, dl, DCI)) in SimplifySetCC()
4963 if (SDValue V = foldSetCCWithBinOp(VT, N1, N0, Cond, dl, DCI)) in SimplifySetCC()
4966 if (SDValue V = foldSetCCWithAnd(VT, N0, N1, Cond, dl, DCI)) in SimplifySetCC()
4971 if ((N0.getOpcode() == ISD::UREM || N0.getOpcode() == ISD::SREM) && in SimplifySetCC()
4972 N0.hasOneUse() && (Cond == ISD::SETEQ || Cond == ISD::SETNE)) { in SimplifySetCC()
4978 if (N0.getOpcode() == ISD::UREM) { in SimplifySetCC()
4979 if (SDValue Folded = buildUREMEqFold(VT, N0, N1, Cond, DCI, dl)) in SimplifySetCC()
4981 } else if (N0.getOpcode() == ISD::SREM) { in SimplifySetCC()
4982 if (SDValue Folded = buildSREMEqFold(VT, N0, N1, Cond, DCI, dl)) in SimplifySetCC()
4989 if (N0.getValueType().getScalarType() == MVT::i1 && foldBooleans) { in SimplifySetCC()
4994 Temp = DAG.getNode(ISD::XOR, dl, OpVT, N0, N1); in SimplifySetCC()
4995 N0 = DAG.getNOT(dl, Temp, OpVT); in SimplifySetCC()
5000 N0 = DAG.getNode(ISD::XOR, dl, OpVT, N0, N1); in SimplifySetCC()
5004 Temp = DAG.getNOT(dl, N0, OpVT); in SimplifySetCC()
5005 N0 = DAG.getNode(ISD::AND, dl, OpVT, N1, Temp); in SimplifySetCC()
5012 N0 = DAG.getNode(ISD::AND, dl, OpVT, N0, Temp); in SimplifySetCC()
5018 Temp = DAG.getNOT(dl, N0, OpVT); in SimplifySetCC()
5019 N0 = DAG.getNode(ISD::OR, dl, OpVT, N1, Temp); in SimplifySetCC()
5026 N0 = DAG.getNode(ISD::OR, dl, OpVT, N0, Temp); in SimplifySetCC()
5031 DCI.AddToWorklist(N0.getNode()); in SimplifySetCC()
5034 N0 = DAG.getNode(ExtendCode, dl, VT, N0); in SimplifySetCC()
5036 return N0; in SimplifySetCC()
5835 SDValue N0 = N->getOperand(0); in BuildSDIV() local
5889 SDValue Q = GetMULHS(N0, MagicFactor); in BuildSDIV()
5896 Factor = DAG.getNode(ISD::MUL, dl, VT, N0, Factor); in BuildSDIV()
5992 SDValue N0 = N->getOperand(0); in BuildUDIV() local
6020 SDValue Q = N0; in BuildUDIV()
6055 SDValue NPQ = DAG.getNode(ISD::SUB, dl, VT, N0, Q); in BuildUDIV()
6078 return DAG.getSelect(dl, VT, IsOne, N0, Q); in BuildUDIV()