Searched refs:N1C (Results 1 – 8 of 8) sorted by relevance
1405 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in visitADD() local1426 if (N0C && N1C) in visitADD()1427 return DAG.FoldConstantArithmetic(ISD::ADD, VT, N0C, N1C); in visitADD()1429 if (N0C && !N1C) in visitADD()1432 if (N1C && N1C->isNullValue()) in visitADD()1436 if (!LegalOperations && TLI.isOffsetFoldingLegal(GA) && N1C && in visitADD()1438 return DAG.getGlobalAddress(GA->getGlobal(), SDLoc(N1C), VT, in visitADD()1440 (uint64_t)N1C->getSExtValue()); in visitADD()1442 if (N1C && N0.getOpcode() == ISD::SUB) in visitADD()1445 DAG.getConstant(N1C->getAPIntValue()+ in visitADD()[all …]
1147 if (ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1.getNode())) { in SimplifySetCC() local1148 const APInt &C1 = N1C->getAPIntValue(); in SimplifySetCC()1373 } else if ((N1C->isNullValue() || N1C->getAPIntValue() == 1) && in SimplifySetCC()1378 bool TrueWhenTrue = (Cond == ISD::SETEQ) ^ (N1C->getAPIntValue() != 1); in SimplifySetCC()1418 } else if (N1C->getAPIntValue() == 1 && in SimplifySetCC()1459 unsigned OperandBitSize = N1C->getValueType(0).getSizeInBits(); in SimplifySetCC()2613 const APInt &N1C = cast<ConstantSDNode>(N->getOperand(1))->getAPIntValue(); in BuildUDIV() local2614 APInt::mu magics = N1C.magicu(); in BuildUDIV()2620 if (magics.a != 0 && !N1C[0]) { in BuildUDIV()2621 unsigned Shift = N1C.countTrailingZeros(); in BuildUDIV()[all …]
1664 if (ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1.getNode())) { in FoldSetCC() local1665 const APInt &C1 = N1C->getAPIntValue(); in FoldSetCC()1682 if (ConstantFPSDNode *N1C = dyn_cast<ConstantFPSDNode>(N1.getNode())) { in FoldSetCC() local1684 APFloat::cmpResult R = N1C->getValueAPF().compare(N2C->getValueAPF()); in FoldSetCC()2888 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1.getNode()); in getNode() local3077 if (N1C) { in getNode()3078 APInt Val = N1C->getAPIntValue(); in getNode()3191 if (N1C && !N2C && isCommutativeBinOp(Opcode)) { in getNode()3192 std::swap(N1C, N2C); in getNode()3355 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1.getNode()); in getNode() local[all …]
1400 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformDAGCombine() local1404 if (N0C && !N1C) in PerformDAGCombine()1408 if (N0C && N0C->isNullValue() && N1C && N1C->isNullValue()) { in PerformDAGCombine()1418 if (N1C && N1C->isNullValue() && N->hasNUsesOfValue(0, 1)) { in PerformDAGCombine()1437 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformDAGCombine() local1441 if (N0C && N0C->isNullValue() && N1C && N1C->isNullValue()) { in PerformDAGCombine()1457 if (N1C && N1C->isNullValue() && N->hasNUsesOfValue(0, 1)) { in PerformDAGCombine()1477 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformDAGCombine() local1481 if ((N0C && !N1C) || in PerformDAGCombine()1482 (N0C && N1C && N0C->getZExtValue() < N1C->getZExtValue())) in PerformDAGCombine()[all …]
1189 if (ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1))) in Select() local1192 if (N1C->isNullValue() && N3C->isNullValue() && in Select()
2611 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in Select() local2612 if (!N1C) in Select()2619 unsigned N1CVal = N1C->getZExtValue(); in Select()
8783 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformORCombine() local8784 if (N1C) { in PerformORCombine()8785 unsigned Val = N1C->getZExtValue(); in PerformORCombine()
10489 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(Op.getOperand(1)); in isXor1OfSetCC() local10490 if (N1C && N1C->getAPIntValue() == 1) { in isXor1OfSetCC()17434 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1); in PerformSHLCombine() local17440 N1C && N0.getOpcode() == ISD::AND && in PerformSHLCombine()17448 APInt ShAmt = N1C->getAPIntValue(); in PerformSHLCombine()17462 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1->getOperand(0)); in PerformSHLCombine() local17466 if (N1C && (1 == N1C->getZExtValue())) { in PerformSHLCombine()