Home | History | Annotate | Download | only in SelectionDAG

Lines Matching refs:N0C

1661   ConstantSDNode *N0C = getAsNonOpaqueConstant(N0);
1663 if (N0C && N1C)
1664 return DAG.FoldConstantArithmetic(ISD::ADD, SDLoc(N), VT, N0C, N1C);
1681 if (ConstantSDNode *N0C = getAsNonOpaqueConstant(N0.getOperand(0))) {
1685 N0C->getAPIntValue(), DL, VT),
1803 ConstantSDNode *N0C = dyn_cast<ConstantSDNode>(N0);
1805 if (N0C && !N1C)
1838 ConstantSDNode *N0C = dyn_cast<ConstantSDNode>(N0);
1840 if (N0C && !N1C)
1883 ConstantSDNode *N0C = getAsNonOpaqueConstant(N0);
1885 if (N0C && N1C)
1886 return DAG.FoldConstantArithmetic(ISD::SUB, SDLoc(N), VT, N0C, N1C);
1908 if (N1.getOpcode() == ISD::ADD && N0C && N1C1) {
1910 SDValue NewC = DAG.getConstant(N0C->getAPIntValue() - N1C1->getAPIntValue(),
2240 ConstantSDNode *N0C = isConstOrConstSplat(N0);
2242 if (N0C && N1C && !N0C->isOpaque() && !N1C->isOpaque())
2243 return DAG.FoldConstantArithmetic(ISD::SDIV, DL, VT, N0C, N1C);
2339 ConstantSDNode *N0C = isConstOrConstSplat(N0);
2341 if (N0C && N1C)
2343 N0C, N1C))
2400 ConstantSDNode *N0C = isConstOrConstSplat(N0);
2402 if (N0C && N1C)
2403 if (SDValue Folded = DAG.FoldConstantArithmetic(Opcode, DL, VT, N0C, N1C))
2695 ConstantSDNode *N0C = getAsNonOpaqueConstant(N0);
2697 if (N0C && N1C)
2698 return DAG.FoldConstantArithmetic(N->getOpcode(), SDLoc(N), VT, N0C, N1C);
3043 ConstantSDNode *N0C = getAsNonOpaqueConstant(N0);
3045 if (N0C && N1C && !N1C->isOpaque())
3046 return DAG.FoldConstantArithmetic(ISD::AND, SDLoc(N), VT, N0C, N1C);
3759 ConstantSDNode *N0C = getAsNonOpaqueConstant(N0);
3761 if (N0C && N1C && !N1C->isOpaque())
3762 return DAG.FoldConstantArithmetic(ISD::OR, SDLoc(N), VT, N0C, N1C);
4105 ConstantSDNode *N0C = getAsNonOpaqueConstant(N0);
4107 if (N0C && N1C)
4108 return DAG.FoldConstantArithmetic(ISD::XOR, SDLoc(N), VT, N0C, N1C);
4389 ConstantSDNode *N0C = getAsNonOpaqueConstant(N0);
4390 if (N0C && N1C && !N1C->isOpaque())
4391 return DAG.FoldConstantArithmetic(ISD::SHL, SDLoc(N), VT, N0C, N1C);
4583 ConstantSDNode *N0C = getAsNonOpaqueConstant(N0);
4584 if (N0C && N1C && !N1C->isOpaque())
4585 return DAG.FoldConstantArithmetic(ISD::SRA, SDLoc(N), VT, N0C, N1C);
4730 ConstantSDNode *N0C = getAsNonOpaqueConstant(N0);
4731 if (N0C && N1C && !N1C->isOpaque())
4732 return DAG.FoldConstantArithmetic(ISD::SRL, SDLoc(N), VT, N0C, N1C);
5025 if (const ConstantSDNode *N0C = dyn_cast<const ConstantSDNode>(N0)) {
5028 return !N0C->isNullValue() ? N1 : N2;