Lines Matching refs:N1C

3237   ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);  in visitADDC()  local
3238 if (N0C && !N1C) in visitADDC()
3379 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in visitADDE() local
3380 if (N0C && !N1C) in visitADDE()
3399 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in visitUADDO_CARRY() local
3400 if (N0C && !N1C) in visitUADDO_CARRY()
3688 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in visitSADDO_CARRY() local
3689 if (N0C && !N1C) in visitSADDO_CARRY()
3831 if (ConstantSDNode *N1C = getAsNonOpaqueConstant(N1)) in visitSUB() local
3833 DAG.getConstant(-N1C->getAPIntValue(), DL, VT)); in visitSUB()
4221 if (ConstantSDNode *N1C = getAsNonOpaqueConstant(N1)) in visitSUBO() local
4222 if (IsSigned && !N1C->isMinSignedValue()) in visitSUBO()
4224 DAG.getConstant(-N1C->getAPIntValue(), DL, VT)); in visitSUBO()
4667 ConstantSDNode *N1C = isConstOrConstSplat(N1); in simplifyDivRem() local
4699 if ((N1C && N1C->isOne()) || (VT.getScalarType() == MVT::i1)) in simplifyDivRem()
4722 ConstantSDNode *N1C = isConstOrConstSplat(N1); in visitSDIV() local
4723 if (N1C && N1C->isAllOnes()) in visitSDIV()
4727 if (N1C && N1C->isMinSignedValue()) in visitSDIV()
4761 if (!N1C || TLI.isIntDivCheap(N->getValueType(0), Attr)) in visitSDIV()
4870 ConstantSDNode *N1C = isConstOrConstSplat(N1); in visitUDIV() local
4871 if (N1C && N1C->isAllOnes() && CCVT.isVector() == VT.isVector()) { in visitUDIV()
4901 if (!N1C || TLI.isIntDivCheap(N->getValueType(0), Attr)) in visitUDIV()
5462 ConstantSDNode *N1C = isConstOrConstSplat(N1); in visitMULO() local
5467 if (N0C && N1C) { in visitMULO()
5470 IsSigned ? N0C->getAPIntValue().smul_ov(N1C->getAPIntValue(), Overflow) in visitMULO()
5471 : N0C->getAPIntValue().umul_ov(N1C->getAPIntValue(), Overflow); in visitMULO()
5488 if (N1C && N1C->getAPIntValue() == 2 && in visitMULO()
5524 ConstantSDNode *N1C = isConstOrConstSplat(peekThroughTruncates(N1)); in isSaturatingMinMax() local
5526 if (!N1C || !N3C) in isSaturatingMinMax()
5528 const APInt &C1 = N1C->getAPIntValue().trunc(N1.getScalarValueSizeInBits()); in isSaturatingMinMax()
5649 ConstantSDNode *N1C = isConstOrConstSplat(N1); in PerformUMinFpToSatCombine() local
5651 if (!N1C || !N3C) in PerformUMinFpToSatCombine()
5653 const APInt &C1 = N1C->getAPIntValue(); in PerformUMinFpToSatCombine()
7011 ConstantSDNode *N1C = isConstOrConstSplat(N1); in visitAND() local
7012 if (N1C && DAG.MaskedValueIsZero(SDValue(N, 0), APInt::getAllOnes(BitWidth))) in visitAND()
7038 if (N1C && N0.getOpcode() == ISD::ANY_EXTEND) { in visitAND()
7042 APInt Mask = ~N1C->getAPIntValue(); in visitAND()
7050 if (N1C->getAPIntValue().countLeadingZeros() >= (BitWidth - SrcBitWidth) && in visitAND()
7187 if (N0.getOpcode() == ISD::EXTRACT_SUBVECTOR && N0.hasOneUse() && N1C && in visitAND()
7194 if (N1C->getAPIntValue().isMask(ScalarWidth) && in visitAND()
7230 if (N1C && N0.getOpcode() == ISD::LOAD && !VT.isVector()) in visitAND()
7263 if (N1C && N1C->isOne() && N0.getOpcode() == ISD::SUB) { in visitAND()
7305 if (N1C && N1C->getAPIntValue() == 0xffff && N0.getOpcode() == ISD::OR) { in visitAND()
7490 ConstantSDNode *N1C = nullptr; in isBSwapHWordElement() local
7493 N1C = dyn_cast<ConstantSDNode>(N.getOperand(1)); in isBSwapHWordElement()
7495 N1C = dyn_cast<ConstantSDNode>(N0.getOperand(1)); in isBSwapHWordElement()
7496 if (!N1C) in isBSwapHWordElement()
7500 switch (N1C->getZExtValue()) { in isBSwapHWordElement()
7938 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in visitOR() local
7939 if (N1C && DAG.MaskedValueIsZero(N0, ~N1C->getAPIntValue())) in visitOR()
10125 ConstantSDNode *N1C = isConstOrConstSplat(N1); in visitSHL() local
10126 if (N1C && !N1C->isOpaque()) in visitSHL()
10149 if (N0.getOpcode() == ISD::VSCALE && N1C) { in visitSHL()
10151 const APInt &C1 = N1C->getAPIntValue(); in visitSHL()
10347 ConstantSDNode *N1C = isConstOrConstSplat(N1); in visitSRA() local
10386 if (N0.getOpcode() == ISD::SHL && N1C) { in visitSRA()
10392 EVT TruncVT = EVT::getIntegerVT(Ctx, OpSizeInBits - N1C->getZExtValue()); in visitSRA()
10398 int ShiftAmt = N1C->getZExtValue() - N01C->getZExtValue(); in visitSRA()
10424 if ((N0.getOpcode() == ISD::ADD || N0.getOpcode() == ISD::SUB) && N1C && in visitSRA()
10436 unsigned ShiftAmt = N1C->getZExtValue(); in visitSRA()
10478 N0.getOperand(0).getOperand(1).hasOneUse() && N1C) { in visitSRA()
10503 if (N1C && !N1C->isOpaque()) in visitSRA()
10543 ConstantSDNode *N1C = isConstOrConstSplat(N1); in visitSRL() local
10544 if (N1C && in visitSRL()
10573 if (N1C && N0.getOpcode() == ISD::TRUNCATE && in visitSRL()
10579 uint64_t c2 = N1C->getZExtValue(); in visitSRL()
10646 if (N1C && N0.getOpcode() == ISD::ANY_EXTEND) { in visitSRL()
10650 if (N1C->getAPIntValue().uge(BitSize)) in visitSRL()
10654 uint64_t ShiftAmt = N1C->getZExtValue(); in visitSRL()
10669 if (N1C && N1C->getAPIntValue() == (OpSizeInBits - 1)) { in visitSRL()
10676 if (N1C && N0.getOpcode() == ISD::CTLZ && in visitSRL()
10678 N1C->getAPIntValue() == Log2_32(OpSizeInBits)) { in visitSRL()
10721 if (N1C && !N1C->isOpaque()) in visitSRL()
10902 ConstantSDNode *N1C = isConstOrConstSplat(N1); in visitSHLSAT() local
10906 if (N->getOpcode() == ISD::SSHLSAT && N1C && in visitSHLSAT()
10907 N1C->getAPIntValue().ult(DAG.ComputeNumSignBits(N0))) in visitSHLSAT()
10911 if (N->getOpcode() == ISD::USHLSAT && N1C && in visitSHLSAT()
10912 N1C->getAPIntValue().ule( in visitSHLSAT()
14458 auto *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1)); in reduceLoadWidth() local
14459 if (!N1C || !LN) in reduceLoadWidth()
14463 ShAmt = N1C->getZExtValue(); in reduceLoadWidth()
16561 ConstantFPSDNode *N1C = isConstOrConstSplatFP(N1, true); in visitFADD() local
16562 if (N1C && N1C->isZero()) in visitFADD()
16563 if (N1C->isNegative() || Options.NoSignedZerosFPMath || Flags.hasNoSignedZeros()) in visitFADD()
17565 if (ConstantFPSDNode *N1C = isConstOrConstSplatFP(N->getOperand(1))) { in visitFCOPYSIGN() local
17566 const APFloat &V = N1C->getValueAPF(); in visitFCOPYSIGN()
27669 auto *N1C = dyn_cast<ConstantSDNode>(N1.getNode()); in SimplifySelectCC() local
27772 if (N1C && N1C->isZero() && (CC == ISD::SETEQ || CC == ISD::SETNE)) { in SimplifySelectCC()
27801 if (!NotExtCompare && N1C && N2C && N3C && in SimplifySelectCC()
27803 ((N1C->isAllOnes() && CC == ISD::SETGT) || in SimplifySelectCC()
27804 (N1C->isZero() && CC == ISD::SETLT)) && in SimplifySelectCC()