• Home
  • Raw
  • Download

Lines Matching refs:N1C

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