Lines Matching defs:N1C

1667   if (ConstantSDNode *N1C = getAsNonOpaqueConstant(N1)) {
1672 DAG.getConstant(N1C->getAPIntValue()+
1793 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
1794 if (N0C && !N1C)
1828 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
1829 if (N0C && !N1C)
1878 ConstantSDNode *N1C = getAsNonOpaqueConstant(N1);
1880 if (N1C) {
1883 DAG.getConstant(-N1C->getAPIntValue(), DL, VT));
1937 if (N1C && GA->getOpcode() == ISD::GlobalAddress)
1938 return DAG.getGlobalAddress(GA->getGlobal(), SDLoc(N1C), VT,
1940 (uint64_t)N1C->getSExtValue());
2236 ConstantSDNode *N1C = isConstOrConstSplat(N1);
2237 if (N0C && N1C && !N0C->isOpaque() && !N1C->isOpaque())
2238 return DAG.FoldConstantArithmetic(ISD::SDIV, DL, VT, N0C, N1C);
2240 if (N1C && N1C->isOne())
2243 if (N1C && N1C->isAllOnesValue())
2258 if (N1C && !N1C->isNullValue() && !N1C->isOpaque() &&
2260 (N1C->getAPIntValue().isPowerOf2() ||
2261 (-N1C->getAPIntValue()).isPowerOf2())) {
2266 unsigned lg2 = N1C->getAPIntValue().countTrailingZeros();
2289 if (N1C->getAPIntValue().isNonNegative())
2300 if (N1C && !TLI.isIntDivCheap(N->getValueType(0), Attr))
2307 if (!N1C || TLI.isIntDivCheap(N->getValueType(0), Attr))
2335 ConstantSDNode *N1C = isConstOrConstSplat(N1);
2336 if (N0C && N1C)
2338 N0C, N1C))
2341 if (N1C && !N1C->isOpaque() && N1C->getAPIntValue().isPowerOf2())
2343 DAG.getConstant(N1C->getAPIntValue().logBase2(), DL,
2364 if (N1C && !TLI.isIntDivCheap(N->getValueType(0), Attr))
2371 if (!N1C || TLI.isIntDivCheap(N->getValueType(0), Attr))
2396 ConstantSDNode *N1C = isConstOrConstSplat(N1);
2397 if (N0C && N1C)
2398 if (SDValue Folded = DAG.FoldConstantArithmetic(Opcode, DL, VT, N0C, N1C))
2410 if (N1C && !N1C->isNullValue() && !N1C->isOpaque() &&
2411 N1C->getAPIntValue().isPowerOf2()) {
2413 DAG.getConstant(N1C->getAPIntValue() - 1, DL, VT));
2438 if (N1C && !N1C->isNullValue() && !TLI.isIntDivCheap(VT, Attr)) {
2689 ConstantSDNode *N1C = getAsNonOpaqueConstant(N1);
2690 if (N0C && N1C)
2691 return DAG.FoldConstantArithmetic(N->getOpcode(), SDLoc(N), VT, N0C, N1C);
3081 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
3082 if (N0C && N1C && !N1C->isOpaque())
3083 return DAG.FoldConstantArithmetic(ISD::AND, SDLoc(N), VT, N0C, N1C);
3093 if (N1C && DAG.MaskedValueIsZero(SDValue(N, 0),
3100 if (N1C && N0.getOpcode() == ISD::OR)
3102 if ((ORI->getAPIntValue() & N1C->getAPIntValue()) == N1C->getAPIntValue())
3105 if (N1C && N0.getOpcode() == ISD::ANY_EXTEND) {
3107 APInt Mask = ~N1C->getAPIntValue();
3233 if (N1C && (N0.getOpcode() == ISD::LOAD ||
3245 if (isAndLoadExtLoad(N1C, LN0, LoadResultTy, ExtVT, LoadedVT,
3344 if (N1C && N1C->getAPIntValue() == 0xffff && N0.getOpcode() == ISD::OR) {
3475 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N.getOperand(1));
3476 if (!N1C)
3480 switch (N1C->getZExtValue()) {
3808 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
3809 if (N0C && N1C && !N1C->isOpaque())
3810 return DAG.FoldConstantArithmetic(ISD::OR, SDLoc(N), VT, N0C, N1C);
3822 if (N1C && DAG.MaskedValueIsZero(N0, ~N1C->getAPIntValue()))
3839 if (N1C && N0.getOpcode() == ISD::AND && N0.getNode()->hasOneUse() &&
3842 if ((C1->getAPIntValue() & N1C->getAPIntValue()) != 0) {
3844 N1C, C1))
4154 ConstantSDNode *N1C = getAsNonOpaqueConstant(N1);
4155 if (N0C && N1C)
4156 return DAG.FoldConstantArithmetic(ISD::XOR, SDLoc(N), VT, N0C, N1C);
4234 if (N1C && N0.getOpcode() == ISD::XOR) {
4238 DAG.getConstant(N1C->getAPIntValue() ^
4244 DAG.getConstant(N1C->getAPIntValue() ^
4409 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
4431 N1C = isConstOrConstSplat(N1);
4438 if (N0C && N1C && !N1C->isOpaque())
4439 return DAG.FoldConstantArithmetic(ISD::SHL, SDLoc(N), VT, N0C, N1C);
4444 if (N1C && N1C->getAPIntValue().uge(OpSizeInBits))
4447 if (N1C && N1C->isNullValue())
4463 if (N1C && SimplifyDemandedBits(SDValue(N, 0)))
4467 if (N1C && N0.getOpcode() == ISD::SHL) {
4470 uint64_t c2 = N1C->getZExtValue();
4484 if (N1C && (N0.getOpcode() == ISD::ZERO_EXTEND ||
4491 uint64_t c2 = N1C->getZExtValue();
4509 if (N1C && N0.getOpcode() == ISD::ZERO_EXTEND && N0.hasOneUse() &&
4515 uint64_t c2 = N1C->getZExtValue();
4532 if (N1C && (N0.getOpcode() == ISD::SRL || N0.getOpcode() == ISD::SRA) &&
4536 uint64_t C2 = N1C->getZExtValue();
4550 if (N1C && N0.getOpcode() == ISD::SRL && N0.hasOneUse()) {
4554 uint64_t c2 = N1C->getZExtValue();
4575 if (N1C && N0.getOpcode() == ISD::SRA && N1 == N0.getOperand(1)) {
4580 BitSize - N1C->getZExtValue()),
4590 if (N1C && N0.getOpcode() == ISD::ADD && N0.getNode()->hasOneUse() &&
4599 if (N1C && N0.getOpcode() == ISD::MUL && N0.getNode()->hasOneUse()) {
4602 DAG.FoldConstantArithmetic(ISD::SHL, SDLoc(N1), VT, N0C1, N1C))
4607 if (N1C && !N1C->isOpaque())
4608 if (SDValue NewSHL = visitShiftByConstant(N, N1C))
4621 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
4626 N1C = isConstOrConstSplat(N1);
4631 if (N0C && N1C && !N1C->isOpaque())
4632 return DAG.FoldConstantArithmetic(ISD::SRA, SDLoc(N), VT, N0C, N1C);
4640 if (N1C && N1C->getZExtValue() >= OpSizeInBits)
4643 if (N1C && N1C->isNullValue())
4647 if (N1C && N0.getOpcode() == ISD::SHL && N1 == N0.getOperand(1)) {
4648 unsigned LowBits = OpSizeInBits - (unsigned)N1C->getZExtValue();
4660 if (N1C && N0.getOpcode() == ISD::SRA) {
4662 unsigned Sum = N1C->getZExtValue() + C1->getZExtValue();
4676 if (N0.getOpcode() == ISD::SHL && N1C) {
4682 EVT TruncVT = EVT::getIntegerVT(Ctx, OpSizeInBits - N1C->getZExtValue());
4688 int ShiftAmt = N1C->getZExtValue() - N01C->getZExtValue();
4726 N1C) {
4735 DAG.getConstant(LargeShiftVal + N1C->getZExtValue(), DL,
4745 if (N1C && SimplifyDemandedBits(SDValue(N, 0)))
4753 if (N1C && !N1C->isOpaque())
4754 if (SDValue NewSRA = visitShiftByConstant(N, N1C))
4767 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
4772 N1C = isConstOrConstSplat(N1);
4777 if (N0C && N1C && !N1C->isOpaque())
4778 return DAG.FoldConstantArithmetic(ISD::SRL, SDLoc(N), VT, N0C, N1C);
4783 if (N1C && N1C->getZExtValue() >= OpSizeInBits)
4786 if (N1C && N1C->isNullValue())
4789 if (N1C && DAG.MaskedValueIsZero(SDValue(N, 0),
4794 if (N1C && N0.getOpcode() == ISD::SRL) {
4797 uint64_t c2 = N1C->getZExtValue();
4807 if (N1C && N0.getOpcode() == ISD::TRUNCATE &&
4812 uint64_t c2 = N1C->getZExtValue();
4830 if (N1C && N0.getOpcode() == ISD::SHL && N0.getOperand(1) == N1) {
4833 uint64_t ShAmt = N1C->getZExtValue() + 64 - BitSize;
4841 if (N1C && N0.getOpcode() == ISD::ANY_EXTEND) {
4845 if (N1C->getZExtValue() >= BitSize)
4849 uint64_t ShiftAmt = N1C->getZExtValue();
4866 if (N1C && N1C->getZExtValue() + 1 == OpSizeInBits) {
4872 if (N1C && N0.getOpcode() == ISD::CTLZ &&
4873 N1C->getAPIntValue() == Log2_32(OpSizeInBits)) {
4918 if (N1C && SimplifyDemandedBits(SDValue(N, 0)))
4921 if (N1C && !N1C->isOpaque())
4922 if (SDValue NewSRL = visitShiftByConstant(N, N1C))
8340 if (ConstantFPSDNode *N1C = isConstOrConstSplatFP(N1))
8341 if (N1C->isZero())
14167 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1.getNode());
14377 if (N1C) {
14379 if (((N1C->isNullValue() && (CC == ISD::SETGT || CC == ISD::SETGE)) ||
14380 (N1C->isAllOnesValue() && CC == ISD::SETGT)) &&
14383 else if (((N1C->isNullValue() && (CC == ISD::SETLT || CC == ISD::SETLE)) ||
14384 (N1C->isOne() && CC == ISD::SETLT)) &&
14411 if (N1C && N1C->isNullValue() && (CC == ISD::SETEQ || CC == ISD::SETNE)) {