Lines Matching refs:N1C

2897   ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);  in visitADDC()  local
2898 if (N0C && !N1C) in visitADDC()
3034 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in visitADDE() local
3035 if (N0C && !N1C) in visitADDE()
3054 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in visitADDCARRY() local
3055 if (N0C && !N1C) in visitADDCARRY()
3093 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in visitSADDO_CARRY() local
3094 if (N0C && !N1C) in visitSADDO_CARRY()
3448 ConstantSDNode *N1C = getAsNonOpaqueConstant(N1); in visitSUB() local
3451 if (N1C) { in visitSUB()
3453 DAG.getConstant(-N1C->getAPIntValue(), DL, VT)); in visitSUB()
3697 if (N1C && GA->getOpcode() == ISD::GlobalAddress) in visitSUB()
3698 return DAG.getGlobalAddress(GA->getGlobal(), SDLoc(N1C), VT, in visitSUB()
3700 (uint64_t)N1C->getSExtValue()); in visitSUB()
3860 ConstantSDNode *N1C = getAsNonOpaqueConstant(N1); in visitSUBO() local
3863 if (IsSigned && N1C && !N1C->getAPIntValue().isMinSignedValue()) { in visitSUBO()
3865 DAG.getConstant(-N1C->getAPIntValue(), DL, VT)); in visitSUBO()
4264 ConstantSDNode *N1C = isConstOrConstSplat(N1); in simplifyDivRem() local
4296 if ((N1C && N1C->isOne()) || (VT.getScalarType() == MVT::i1)) in simplifyDivRem()
4319 ConstantSDNode *N1C = isConstOrConstSplat(N1); in visitSDIV() local
4320 if (N1C && N1C->isAllOnes()) in visitSDIV()
4324 if (N1C && N1C->getAPIntValue().isMinSignedValue()) in visitSDIV()
4358 if (!N1C || TLI.isIntDivCheap(N->getValueType(0), Attr)) in visitSDIV()
4467 ConstantSDNode *N1C = isConstOrConstSplat(N1); in visitUDIV() local
4468 if (N1C && N1C->isAllOnes()) in visitUDIV()
4497 if (!N1C || TLI.isIntDivCheap(N->getValueType(0), Attr)) in visitUDIV()
4974 ConstantSDNode *N1C = isConstOrConstSplat(N1); in visitMULO() local
4979 if (N0C && N1C) { in visitMULO()
4982 IsSigned ? N0C->getAPIntValue().smul_ov(N1C->getAPIntValue(), Overflow) in visitMULO()
4983 : N0C->getAPIntValue().umul_ov(N1C->getAPIntValue(), Overflow); in visitMULO()
5000 if (N1C && N1C->getAPIntValue() == 2 && in visitMULO()
5052 ConstantSDNode *N1C = isConstOrConstSplat(N1); in isSaturatingMinMax() local
5054 if (!N1C || !N3C) in isSaturatingMinMax()
5056 const APInt &C1 = N1C->getAPIntValue(); in isSaturatingMinMax()
5158 ConstantSDNode *N1C = isConstOrConstSplat(N1); in PerformUMinFpToSatCombine() local
5160 if (!N1C || !N3C) in PerformUMinFpToSatCombine()
5162 const APInt &C1 = N1C->getAPIntValue(); in PerformUMinFpToSatCombine()
6205 ConstantSDNode *N1C = isConstOrConstSplat(N1); in visitAND() local
6206 if (N1C && DAG.MaskedValueIsZero(SDValue(N, 0), APInt::getAllOnes(BitWidth))) in visitAND()
6232 if (N1C && N0.getOpcode() == ISD::ANY_EXTEND) { in visitAND()
6234 APInt Mask = ~N1C->getAPIntValue(); in visitAND()
6356 if (N0.getOpcode() == ISD::EXTRACT_SUBVECTOR && N0.hasOneUse() && N1C && in visitAND()
6363 if (N1C->getAPIntValue().isMask(ScalarWidth) && in visitAND()
6399 if (N1C && N0.getOpcode() == ISD::LOAD && !VT.isVector()) in visitAND()
6432 if (N1C && N1C->isOne() && N0.getOpcode() == ISD::SUB) { in visitAND()
6474 if (N1C && N1C->getAPIntValue() == 0xffff && N0.getOpcode() == ISD::OR) { in visitAND()
6654 ConstantSDNode *N1C = nullptr; in isBSwapHWordElement() local
6657 N1C = dyn_cast<ConstantSDNode>(N.getOperand(1)); in isBSwapHWordElement()
6659 N1C = dyn_cast<ConstantSDNode>(N0.getOperand(1)); in isBSwapHWordElement()
6660 if (!N1C) in isBSwapHWordElement()
6664 switch (N1C->getZExtValue()) { in isBSwapHWordElement()
7053 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in visitOR() local
7054 if (N1C && DAG.MaskedValueIsZero(N0, ~N1C->getAPIntValue())) in visitOR()
9109 ConstantSDNode *N1C = isConstOrConstSplat(N1); in visitSHL() local
9110 if (N1C && !N1C->isOpaque()) in visitSHL()
9250 ConstantSDNode *N1C = isConstOrConstSplat(N1); in visitSRA() local
9251 if (N1C && N0.getOpcode() == ISD::SHL && N1 == N0.getOperand(1)) { in visitSRA()
9252 unsigned LowBits = OpSizeInBits - (unsigned)N1C->getZExtValue(); in visitSRA()
9264 if (DAG.ComputeNumSignBits(N0.getOperand(0)) > N1C->getZExtValue()) in visitSRA()
9306 if (N0.getOpcode() == ISD::SHL && N1C) { in visitSRA()
9312 EVT TruncVT = EVT::getIntegerVT(Ctx, OpSizeInBits - N1C->getZExtValue()); in visitSRA()
9318 int ShiftAmt = N1C->getZExtValue() - N01C->getZExtValue(); in visitSRA()
9346 if ((N0.getOpcode() == ISD::ADD || N0.getOpcode() == ISD::SUB) && N1C && in visitSRA()
9358 unsigned ShiftAmt = N1C->getZExtValue(); in visitSRA()
9401 N0.getOperand(0).getOperand(1).hasOneUse() && N1C) { in visitSRA()
9427 if (N1C && !N1C->isOpaque()) in visitSRA()
9466 ConstantSDNode *N1C = isConstOrConstSplat(N1); in visitSRL() local
9467 if (N1C && in visitSRL()
9497 if (N1C && N0.getOpcode() == ISD::TRUNCATE && in visitSRL()
9503 uint64_t c2 = N1C->getZExtValue(); in visitSRL()
9574 if (N1C && N0.getOpcode() == ISD::ANY_EXTEND) { in visitSRL()
9578 if (N1C->getAPIntValue().uge(BitSize)) in visitSRL()
9582 uint64_t ShiftAmt = N1C->getZExtValue(); in visitSRL()
9599 if (N1C && N1C->getAPIntValue() == (OpSizeInBits - 1)) { in visitSRL()
9605 if (N1C && N0.getOpcode() == ISD::CTLZ && in visitSRL()
9606 N1C->getAPIntValue() == Log2_32(OpSizeInBits)) { in visitSRL()
9653 if (N1C && !N1C->isOpaque()) in visitSRL()
9825 ConstantSDNode *N1C = isConstOrConstSplat(N1); in visitSHLSAT() local
9829 if (N->getOpcode() == ISD::SSHLSAT && N1C && in visitSHLSAT()
9830 N1C->getAPIntValue().ult(DAG.ComputeNumSignBits(N0))) in visitSHLSAT()
9834 if (N->getOpcode() == ISD::USHLSAT && N1C && in visitSHLSAT()
9835 N1C->getAPIntValue().ule( in visitSHLSAT()
11172 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in visitSETCC() local
11188 if (N0->getOpcode() == ISD::FREEZE && N0.hasOneUse() && N1C) { in visitSETCC()
11189 if (!IsAlwaysTrueOrFalse(Cond, N1C)) { in visitSETCC()
12771 auto *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1)); in reduceLoadWidth() local
12772 if (!N1C || !LN) in reduceLoadWidth()
12776 ShAmt = N1C->getZExtValue(); in reduceLoadWidth()
14621 ConstantFPSDNode *N1C = isConstOrConstSplatFP(N1, true); in visitFADD() local
14622 if (N1C && N1C->isZero()) in visitFADD()
14623 if (N1C->isNegative() || Options.NoSignedZerosFPMath || Flags.hasNoSignedZeros()) in visitFADD()
15444 if (ConstantFPSDNode *N1C = isConstOrConstSplatFP(N->getOperand(1))) { in visitFCOPYSIGN() local
15445 const APFloat &V = N1C->getValueAPF(); in visitFCOPYSIGN()
24114 auto *N1C = dyn_cast<ConstantSDNode>(N1.getNode()); in SimplifySelectCC() local
24223 if (N1C && N1C->isZero() && (CC == ISD::SETEQ || CC == ISD::SETNE)) { in SimplifySelectCC()
24252 if (!NotExtCompare && N1C && N2C && N3C && in SimplifySelectCC()
24254 ((N1C->isAllOnes() && CC == ISD::SETGT) || in SimplifySelectCC()
24255 (N1C->isZero() && CC == ISD::SETLT)) && in SimplifySelectCC()