Lines Matching refs:Op0
788 SDValue Op0 = Op.getOperand(0); in SimplifyMultipleUseDemandedBits() local
791 DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits()
794 return Op0; in SimplifyMultipleUseDemandedBits()
799 SDValue Op0 = Op.getOperand(0); in SimplifyMultipleUseDemandedBits() local
806 Op0.getScalarValueSizeInBits() == BitWidth && in SimplifyMultipleUseDemandedBits()
807 getBooleanContents(Op0.getValueType()) == in SimplifyMultipleUseDemandedBits()
815 return Op0; in SimplifyMultipleUseDemandedBits()
821 SDValue Op0 = Op.getOperand(0); in SimplifyMultipleUseDemandedBits() local
826 return Op0; in SimplifyMultipleUseDemandedBits()
828 unsigned NumSignBits = DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits()
830 return Op0; in SimplifyMultipleUseDemandedBits()
1335 SDValue Op0 = Op.getOperand(0); in SimplifyDemandedBits() local
1341 if (SimplifyDemandedBits(Op0, DemandedBits, DemandedLHS, Known2, TLO, in SimplifyDemandedBits()
1355 Op0, DemandedBits, DemandedLHS, TLO.DAG, Depth + 1); in SimplifyDemandedBits()
1359 Op0 = DemandedOp0 ? DemandedOp0 : Op0; in SimplifyDemandedBits()
1361 SDValue NewOp = TLO.DAG.getVectorShuffle(VT, dl, Op0, Op1, ShuffleMask); in SimplifyDemandedBits()
1368 SDValue Op0 = Op.getOperand(0); in SimplifyDemandedBits() local
1377 KnownBits LHSKnown = TLO.DAG.computeKnownBits(Op0, DemandedElts, Depth); in SimplifyDemandedBits()
1381 return TLO.CombineTo(Op, Op0); in SimplifyDemandedBits()
1394 if (isBitwiseNot(Op0) && Op0.hasOneUse() && in SimplifyDemandedBits()
1396 SDValue Xor = TLO.DAG.getNode(ISD::XOR, dl, VT, Op0.getOperand(0), Op1); in SimplifyDemandedBits()
1403 if (Op0.getOpcode() == ISD::INSERT_SUBVECTOR && !VT.isScalableVector() && in SimplifyDemandedBits()
1404 (Op0.getOperand(0).isUndef() || in SimplifyDemandedBits()
1405 ISD::isBuildVectorOfConstantSDNodes(Op0.getOperand(0).getNode())) && in SimplifyDemandedBits()
1406 Op0->hasOneUse()) { in SimplifyDemandedBits()
1408 Op0.getOperand(1).getValueType().getVectorNumElements(); in SimplifyDemandedBits()
1409 unsigned SubIdx = Op0.getConstantOperandVal(2); in SimplifyDemandedBits()
1416 TLO.DAG.getNode(ISD::AND, dl, VT, Op0.getOperand(0), Op1); in SimplifyDemandedBits()
1419 Op0.getOperand(1), Op0.getOperand(2)); in SimplifyDemandedBits()
1428 if (SimplifyDemandedBits(Op0, ~Known.Zero & DemandedBits, DemandedElts, in SimplifyDemandedBits()
1436 return TLO.CombineTo(Op, Op0); in SimplifyDemandedBits()
1453 Op0, DemandedBits, DemandedElts, TLO.DAG, Depth + 1); in SimplifyDemandedBits()
1457 Op0 = DemandedOp0 ? DemandedOp0 : Op0; in SimplifyDemandedBits()
1459 SDValue NewOp = TLO.DAG.getNode(Op.getOpcode(), dl, VT, Op0, Op1); in SimplifyDemandedBits()
1468 SDValue Op0 = Op.getOperand(0); in SimplifyDemandedBits() local
1480 if (SimplifyDemandedBits(Op0, ~Known.One & DemandedBits, DemandedElts, in SimplifyDemandedBits()
1493 return TLO.CombineTo(Op, Op0); in SimplifyDemandedBits()
1506 Op0, DemandedBits, DemandedElts, TLO.DAG, Depth + 1); in SimplifyDemandedBits()
1510 Op0 = DemandedOp0 ? DemandedOp0 : Op0; in SimplifyDemandedBits()
1512 SDValue NewOp = TLO.DAG.getNode(Op.getOpcode(), dl, VT, Op0, Op1); in SimplifyDemandedBits()
1519 if (Op0.getOpcode() == ISD::AND && Op1.getOpcode() == ISD::AND && in SimplifyDemandedBits()
1520 Op0->hasOneUse() && Op1->hasOneUse()) { in SimplifyDemandedBits()
1548 SDValue Op0 = Op.getOperand(0); in SimplifyDemandedBits() local
1555 if (SimplifyDemandedBits(Op0, DemandedBits, DemandedElts, Known2, TLO, in SimplifyDemandedBits()
1563 return TLO.CombineTo(Op, Op0); in SimplifyDemandedBits()
1574 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::OR, dl, VT, Op0, Op1)); in SimplifyDemandedBits()
1586 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::AND, dl, VT, Op0, ANDC)); in SimplifyDemandedBits()
1594 SDValue New = TLO.DAG.getNOT(dl, Op0, VT); in SimplifyDemandedBits()
1598 unsigned Op0Opcode = Op0.getOpcode(); in SimplifyDemandedBits()
1599 if ((Op0Opcode == ISD::SRL || Op0Opcode == ISD::SHL) && Op0.hasOneUse()) { in SimplifyDemandedBits()
1601 isConstOrConstSplat(Op0.getOperand(1), DemandedElts)) { in SimplifyDemandedBits()
1616 SDValue Not = TLO.DAG.getNOT(dl, Op0.getOperand(0), VT); in SimplifyDemandedBits()
1618 Op0.getOperand(1))); in SimplifyDemandedBits()
1633 Op0, DemandedBits, DemandedElts, TLO.DAG, Depth + 1); in SimplifyDemandedBits()
1637 Op0 = DemandedOp0 ? DemandedOp0 : Op0; in SimplifyDemandedBits()
1639 SDValue NewOp = TLO.DAG.getNode(Op.getOpcode(), dl, VT, Op0, Op1); in SimplifyDemandedBits()
1695 SDValue Op0 = Op.getOperand(0); in SimplifyDemandedBits() local
1702 Op0.getScalarValueSizeInBits() == BitWidth && in SimplifyDemandedBits()
1703 getBooleanContents(Op0.getValueType()) == in SimplifyDemandedBits()
1711 return TLO.CombineTo(Op, Op0); in SimplifyDemandedBits()
1716 if (getBooleanContents(Op0.getValueType()) == in SimplifyDemandedBits()
1723 SDValue Op0 = Op.getOperand(0); in SimplifyDemandedBits() local
1731 return TLO.CombineTo(Op, Op0); in SimplifyDemandedBits()
1737 if (Op0.getOpcode() == ISD::SRL) { in SimplifyDemandedBits()
1740 TLO.DAG.getValidShiftAmountConstant(Op0, DemandedElts)) { in SimplifyDemandedBits()
1750 Op, TLO.DAG.getNode(Opc, dl, VT, Op0.getOperand(0), NewSA)); in SimplifyDemandedBits()
1758 if (Op0.getOpcode() == ISD::ANY_EXTEND) { in SimplifyDemandedBits()
1759 SDValue InnerOp = Op0.getOperand(0); in SimplifyDemandedBits()
1777 if (InnerOp.getOpcode() == ISD::SRL && Op0.hasOneUse() && in SimplifyDemandedBits()
1798 if (SimplifyDemandedBits(Op0, InDemandedMask, DemandedElts, Known, TLO, in SimplifyDemandedBits()
1819 Op0, InDemandedMask, DemandedElts, TLO.DAG, Depth + 1); in SimplifyDemandedBits()
1851 SDValue NewOp = TLO.DAG.getNode(ISD::TRUNCATE, dl, HalfVT, Op0); in SimplifyDemandedBits()
1868 if (SimplifyDemandedBits(Op0, DemandedFromOp, DemandedElts, Known, TLO, in SimplifyDemandedBits()
1890 TLO.DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1); in SimplifyDemandedBits()
1893 return TLO.CombineTo(Op, Op0); in SimplifyDemandedBits()
1898 SDValue Op0 = Op.getOperand(0); in SimplifyDemandedBits() local
1911 return TLO.CombineTo(Op, Op0); in SimplifyDemandedBits()
1917 if (Op0.getOpcode() == ISD::SHL) { in SimplifyDemandedBits()
1920 TLO.DAG.getValidShiftAmountConstant(Op0, DemandedElts)) { in SimplifyDemandedBits()
1930 Op, TLO.DAG.getNode(Opc, dl, VT, Op0.getOperand(0), NewSA)); in SimplifyDemandedBits()
1952 TLO.DAG.MaskedValueIsZero(Op0, HiBits))) { in SimplifyDemandedBits()
1953 SDValue NewOp = TLO.DAG.getNode(ISD::TRUNCATE, dl, HalfVT, Op0); in SimplifyDemandedBits()
1964 if (SimplifyDemandedBits(Op0, InDemandedMask, DemandedElts, Known, TLO, in SimplifyDemandedBits()
1976 Op0, InDemandedMask, DemandedElts, TLO.DAG, Depth + 1); in SimplifyDemandedBits()
1990 SDValue Op0 = Op.getOperand(0); in SimplifyDemandedBits() local
1997 if (TLO.DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1) >= in SimplifyDemandedBits()
1999 return TLO.CombineTo(Op, Op0); in SimplifyDemandedBits()
2006 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::SRL, dl, VT, Op0, Op1)); in SimplifyDemandedBits()
2017 return TLO.CombineTo(Op, Op0); in SimplifyDemandedBits()
2021 if (Op0.getOpcode() == ISD::SHL) { in SimplifyDemandedBits()
2023 TLO.DAG.getValidShiftAmountConstant(Op0, DemandedElts)) { in SimplifyDemandedBits()
2035 Op0.getOperand(0), in SimplifyDemandedBits()
2041 TLO.DAG.ComputeNumSignBits(Op0.getOperand(0), DemandedElts); in SimplifyDemandedBits()
2043 return TLO.CombineTo(Op, Op0.getOperand(0)); in SimplifyDemandedBits()
2060 if (SimplifyDemandedBits(Op0, InDemandedMask, DemandedElts, Known, TLO, in SimplifyDemandedBits()
2074 Op, TLO.DAG.getNode(ISD::SRL, dl, VT, Op0, Op1, Flags)); in SimplifyDemandedBits()
2081 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::SRL, dl, VT, Op0, NewSA)); in SimplifyDemandedBits()
2091 Op0, InDemandedMask, DemandedElts, TLO.DAG, Depth + 1); in SimplifyDemandedBits()
2102 SDValue Op0 = Op.getOperand(0); in SimplifyDemandedBits() local
2113 if (SimplifyDemandedBits(IsFSHL ? Op0 : Op1, DemandedBits, DemandedElts, in SimplifyDemandedBits()
2123 if (SimplifyDemandedBits(Op0, Demanded0, DemandedElts, Known2, TLO, in SimplifyDemandedBits()
2140 Op0, Demanded0, DemandedElts, TLO.DAG, Depth + 1); in SimplifyDemandedBits()
2144 DemandedOp0 = DemandedOp0 ? DemandedOp0 : Op0; in SimplifyDemandedBits()
2164 SDValue Op0 = Op.getOperand(0); in SimplifyDemandedBits() local
2169 if (BitWidth == TLO.DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1)) in SimplifyDemandedBits()
2170 return TLO.CombineTo(Op, Op0); in SimplifyDemandedBits()
2179 if (SimplifyDemandedBits(Op0, Demanded0, DemandedElts, Known2, TLO, in SimplifyDemandedBits()
2185 return TLO.CombineTo(Op, Op0); in SimplifyDemandedBits()
2191 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::SHL, dl, VT, Op0, Op1)); in SimplifyDemandedBits()
2196 return TLO.CombineTo(Op, TLO.DAG.getNode(ISD::SRL, dl, VT, Op0, Op1)); in SimplifyDemandedBits()
2214 SDValue Op0 = Op.getOperand(0); in SimplifyDemandedBits() local
2221 std::min(TLO.DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1), in SimplifyDemandedBits()
2225 return TLO.CombineTo(Op, TLO.DAG.getNode(BitOp, SDLoc(Op), VT, Op0, Op1)); in SimplifyDemandedBits()
2228 KnownBits Known0 = TLO.DAG.computeKnownBits(Op0, DemandedElts, Depth + 1); in SimplifyDemandedBits()
2233 return TLO.CombineTo(Op, *IsSLE ? Op0 : Op1); in SimplifyDemandedBits()
2235 return TLO.CombineTo(Op, *IsSLT ? Op0 : Op1); in SimplifyDemandedBits()
2240 return TLO.CombineTo(Op, *IsSGE ? Op0 : Op1); in SimplifyDemandedBits()
2242 return TLO.CombineTo(Op, *IsSGT ? Op0 : Op1); in SimplifyDemandedBits()
2247 return TLO.CombineTo(Op, *IsULE ? Op0 : Op1); in SimplifyDemandedBits()
2249 return TLO.CombineTo(Op, *IsULT ? Op0 : Op1); in SimplifyDemandedBits()
2254 return TLO.CombineTo(Op, *IsUGE ? Op0 : Op1); in SimplifyDemandedBits()
2256 return TLO.CombineTo(Op, *IsUGT ? Op0 : Op1); in SimplifyDemandedBits()
2319 SDValue Op0 = Op.getOperand(0); in SimplifyDemandedBits() local
2326 TLO.DAG.ComputeMaxSignificantBits(Op0, DemandedElts, Depth + 1); in SimplifyDemandedBits()
2336 TLO.DAG.getNode(ISD::SHL, dl, VT, Op0, ShiftAmt)); in SimplifyDemandedBits()
2342 return TLO.CombineTo(Op, Op0); in SimplifyDemandedBits()
2350 if (SimplifyDemandedBits(Op0, InputDemandedBits, DemandedElts, Known, TLO, in SimplifyDemandedBits()
2360 return TLO.CombineTo(Op, TLO.DAG.getZeroExtendInReg(Op0, dl, ExVT)); in SimplifyDemandedBits()
2775 SDValue Op0 = Op.getOperand(0), Op1 = Op.getOperand(1); in SimplifyDemandedBits() local
2780 if (SimplifyDemandedBits(Op0, LoMask, DemandedElts, KnownOp0, TLO, in SimplifyDemandedBits()
2798 isNullConstant(Op0)) in SimplifyDemandedBits()
2804 Op0, LoMask, DemandedElts, TLO.DAG, Depth + 1); in SimplifyDemandedBits()
2810 Op0 = DemandedOp0 ? DemandedOp0 : Op0; in SimplifyDemandedBits()
2813 TLO.DAG.getNode(Op.getOpcode(), dl, VT, Op0, Op1, Flags); in SimplifyDemandedBits()
2832 SDValue NewOp = TLO.DAG.getNode(Op.getOpcode(), dl, VT, Op0, Neg1, Flags); in SimplifyDemandedBits()
2866 if (unsigned ShAmt = getShiftLeftAmt(Op0)) in SimplifyDemandedBits()
2867 return foldMul(ISD::SUB, Op0.getOperand(0), Op1, ShAmt); in SimplifyDemandedBits()
2870 return foldMul(ISD::SUB, Op1.getOperand(0), Op0, ShAmt); in SimplifyDemandedBits()
2875 return foldMul(ISD::ADD, Op1.getOperand(0), Op0, ShAmt); in SimplifyDemandedBits()
3052 auto SimplifyDemandedVectorEltsBinOp = [&](SDValue Op0, SDValue Op1) { in SimplifyDemandedVectorElts() argument
3053 SDValue NewOp0 = SimplifyMultipleUseDemandedVectorElts(Op0, DemandedElts, in SimplifyDemandedVectorElts()
3059 TLO.DAG.getNode(Opcode, SDLoc(Op), VT, NewOp0 ? NewOp0 : Op0, in SimplifyDemandedVectorElts()
3520 SDValue Op0 = Op.getOperand(0); in SimplifyDemandedVectorElts() local
3522 if (Op0 == Op1 && Op->isOnlyUserOf(Op0.getNode())) { in SimplifyDemandedVectorElts()
3524 if (SimplifyDemandedVectorElts(Op0, DemandedElts, UndefLHS, ZeroLHS, TLO, in SimplifyDemandedVectorElts()
3538 SDValue Op0 = Op.getOperand(0); in SimplifyDemandedVectorElts() local
3546 if (SimplifyDemandedVectorElts(Op0, DemandedElts, UndefLHS, ZeroLHS, TLO, in SimplifyDemandedVectorElts()
3556 if (SimplifyDemandedVectorEltsBinOp(Op0, Op1)) in SimplifyDemandedVectorElts()
3565 SDValue Op0 = Op.getOperand(0); in SimplifyDemandedVectorElts() local
3573 if (SimplifyDemandedVectorElts(Op0, DemandedElts, UndefLHS, ZeroLHS, TLO, in SimplifyDemandedVectorElts()
3583 if (SimplifyDemandedVectorEltsBinOp(Op0, Op1)) in SimplifyDemandedVectorElts()
3591 SDValue Op0 = Op.getOperand(0); in SimplifyDemandedVectorElts() local
3601 if (SimplifyDemandedVectorElts(Op0, DemandedElts0, KnownUndef, KnownZero, in SimplifyDemandedVectorElts()
3624 if (SimplifyDemandedVectorEltsBinOp(Op0, Op1)) in SimplifyDemandedVectorElts()
4770 SDValue Op0 = N0; in SimplifySetCC() local
4771 if (Op0.getOpcode() == ISD::TRUNCATE) in SimplifySetCC()
4772 Op0 = Op0.getOperand(0); in SimplifySetCC()
4774 if ((Op0.getOpcode() == ISD::XOR) && in SimplifySetCC()
4775 Op0.getOperand(0).getOpcode() == ISD::SETCC && in SimplifySetCC()
4776 Op0.getOperand(1).getOpcode() == ISD::SETCC) { in SimplifySetCC()
4777 SDValue XorLHS = Op0.getOperand(0); in SimplifySetCC()
4778 SDValue XorRHS = Op0.getOperand(1); in SimplifySetCC()
4780 if (Op0.getValueType() == MVT::i1 || in SimplifySetCC()
4790 if (Op0.getOpcode() == ISD::AND && isOneConstant(Op0.getOperand(1))) { in SimplifySetCC()
4792 if (Op0.getValueType().bitsGT(VT)) in SimplifySetCC()
4793 Op0 = DAG.getNode(ISD::AND, dl, VT, in SimplifySetCC()
4794 DAG.getNode(ISD::TRUNCATE, dl, VT, Op0.getOperand(0)), in SimplifySetCC()
4796 else if (Op0.getValueType().bitsLT(VT)) in SimplifySetCC()
4797 Op0 = DAG.getNode(ISD::AND, dl, VT, in SimplifySetCC()
4798 DAG.getNode(ISD::ANY_EXTEND, dl, VT, Op0.getOperand(0)), in SimplifySetCC()
4801 return DAG.getSetCC(dl, VT, Op0, in SimplifySetCC()
4802 DAG.getConstant(0, dl, Op0.getValueType()), in SimplifySetCC()
4805 if (Op0.getOpcode() == ISD::AssertZext && in SimplifySetCC()
4806 cast<VTSDNode>(Op0.getOperand(1))->getVT() == MVT::i1) in SimplifySetCC()
4807 return DAG.getSetCC(dl, VT, Op0, in SimplifySetCC()
4808 DAG.getConstant(0, dl, Op0.getValueType()), in SimplifySetCC()
6023 SDValue Op0 = N->getOperand(0); in BuildExactSDIV() local
6072 SDValue Res = Op0; in BuildExactSDIV()
6724 SDValue Op0 = DAG.getNode(ISD::MUL, DL, VT, N, PVal); in prepareUREMEqFold() local
6725 Created.push_back(Op0.getNode()); in prepareUREMEqFold()
6734 Op0 = DAG.getNode(ISD::ROTR, DL, VT, Op0, KVal); in prepareUREMEqFold()
6735 Created.push_back(Op0.getNode()); in prepareUREMEqFold()
6740 DAG.getSetCC(DL, SETCCVT, Op0, QVal, in prepareUREMEqFold()
6979 SDValue Op0 = DAG.getNode(ISD::MUL, DL, VT, N, PVal); in prepareSREMEqFold() local
6980 Created.push_back(Op0.getNode()); in prepareSREMEqFold()
6988 Op0 = DAG.getNode(ISD::ADD, DL, VT, Op0, AVal); in prepareSREMEqFold()
6989 Created.push_back(Op0.getNode()); in prepareSREMEqFold()
6999 Op0 = DAG.getNode(ISD::ROTR, DL, VT, Op0, KVal); in prepareSREMEqFold()
7000 Created.push_back(Op0.getNode()); in prepareSREMEqFold()
7005 DAG.getSetCC(DL, SETCCVT, Op0, QVal, in prepareSREMEqFold()
7927 SDValue Op0 = Node->getOperand(0); in expandROT() local
7939 return DAG.getNode(RevRot, DL, VT, Op0, Sub); in expandROT()
7960 ShVal = DAG.getNode(ShOpc, DL, VT, Op0, ShAmt); in expandROT()
7962 HsVal = DAG.getNode(HsOpc, DL, VT, Op0, HsAmt); in expandROT()
7968 ShVal = DAG.getNode(ShOpc, DL, VT, Op0, ShAmt); in expandROT()
7972 DAG.getNode(HsOpc, DL, VT, DAG.getNode(HsOpc, DL, VT, Op0, One), HsAmt); in expandROT()
9917 SDValue Op0 = Node->getOperand(0); in expandIntMINMAX() local
9919 EVT VT = Op0.getValueType(); in expandIntMINMAX()
9927 Op0 = DAG.getFreeze(Op0); in expandIntMINMAX()
9929 return DAG.getNode(ISD::SUB, DL, VT, Op0, in expandIntMINMAX()
9930 DAG.getSetCC(DL, VT, Op0, Zero, ISD::SETEQ)); in expandIntMINMAX()
9937 return DAG.getNode(ISD::SUB, DL, VT, Op0, in expandIntMINMAX()
9938 DAG.getNode(ISD::USUBSAT, DL, VT, Op0, Op1)); in expandIntMINMAX()
9945 return DAG.getNode(ISD::ADD, DL, VT, Op0, in expandIntMINMAX()
9946 DAG.getNode(ISD::USUBSAT, DL, VT, Op1, Op0)); in expandIntMINMAX()
9963 {Op0, Op1, DAG.getCondCode(CC)})) { in expandIntMINMAX()
9964 SDValue Cond = DAG.getSetCC(DL, BoolVT, Op0, Op1, CC); in expandIntMINMAX()
9965 return DAG.getSelect(DL, VT, Cond, Op0, Op1); in expandIntMINMAX()
9970 {Op0, Op1, DAG.getCondCode(CC)})) { in expandIntMINMAX()
9971 SDValue Cond = DAG.getSetCC(DL, BoolVT, Op0, Op1, CC); in expandIntMINMAX()
9972 return DAG.getSelect(DL, VT, Cond, Op1, Op0); in expandIntMINMAX()
9975 SDValue Cond = DAG.getSetCC(DL, BoolVT, Op0, Op1, PrefCC); in expandIntMINMAX()
9976 return DAG.getSelect(DL, VT, Cond, Op0, Op1); in expandIntMINMAX()