Lines Matching refs:PromOp
13615 for (auto &PromOp : PromOps) in DAGCombineTruncBoolExt() local
13616 PromOpHandles.emplace_back(PromOp); in DAGCombineTruncBoolExt()
13624 SDValue PromOp = PromOpHandles.back().getValue(); in DAGCombineTruncBoolExt() local
13627 if (PromOp.getOpcode() == ISD::TRUNCATE || in DAGCombineTruncBoolExt()
13628 PromOp.getOpcode() == ISD::SIGN_EXTEND || in DAGCombineTruncBoolExt()
13629 PromOp.getOpcode() == ISD::ZERO_EXTEND || in DAGCombineTruncBoolExt()
13630 PromOp.getOpcode() == ISD::ANY_EXTEND) { in DAGCombineTruncBoolExt()
13631 if (!isa<ConstantSDNode>(PromOp.getOperand(0)) && in DAGCombineTruncBoolExt()
13632 PromOp.getOperand(0).getValueType() != MVT::i1) { in DAGCombineTruncBoolExt()
13634 PromOpHandles.emplace_front(PromOp); in DAGCombineTruncBoolExt()
13638 SDValue RepValue = PromOp.getOperand(0); in DAGCombineTruncBoolExt()
13642 DAG.ReplaceAllUsesOfValueWith(PromOp, RepValue); in DAGCombineTruncBoolExt()
13647 switch (PromOp.getOpcode()) { in DAGCombineTruncBoolExt()
13653 if ((!isa<ConstantSDNode>(PromOp.getOperand(C)) && in DAGCombineTruncBoolExt()
13654 PromOp.getOperand(C).getValueType() != MVT::i1) || in DAGCombineTruncBoolExt()
13655 (!isa<ConstantSDNode>(PromOp.getOperand(C+1)) && in DAGCombineTruncBoolExt()
13656 PromOp.getOperand(C+1).getValueType() != MVT::i1)) { in DAGCombineTruncBoolExt()
13661 PromOpHandles.emplace_front(PromOp); in DAGCombineTruncBoolExt()
13665 SmallVector<SDValue, 3> Ops(PromOp.getNode()->op_begin(), in DAGCombineTruncBoolExt()
13666 PromOp.getNode()->op_end()); in DAGCombineTruncBoolExt()
13673 DAG.ReplaceAllUsesOfValueWith(PromOp, in DAGCombineTruncBoolExt()
13674 DAG.getNode(PromOp.getOpcode(), dl, MVT::i1, Ops)); in DAGCombineTruncBoolExt()
13862 for (auto &PromOp : PromOps) in DAGCombineExtBoolTrunc() local
13863 PromOpHandles.emplace_back(PromOp); in DAGCombineExtBoolTrunc()
13870 SDValue PromOp = PromOpHandles.back().getValue(); in DAGCombineExtBoolTrunc() local
13874 switch (PromOp.getOpcode()) { in DAGCombineExtBoolTrunc()
13880 if ((!isa<ConstantSDNode>(PromOp.getOperand(C)) && in DAGCombineExtBoolTrunc()
13881 PromOp.getOperand(C).getValueType() != N->getValueType(0)) || in DAGCombineExtBoolTrunc()
13882 (!isa<ConstantSDNode>(PromOp.getOperand(C+1)) && in DAGCombineExtBoolTrunc()
13883 PromOp.getOperand(C+1).getValueType() != N->getValueType(0))) { in DAGCombineExtBoolTrunc()
13888 PromOpHandles.emplace_front(PromOp); in DAGCombineExtBoolTrunc()
13894 if (PromOp.getOpcode() == ISD::SELECT || in DAGCombineExtBoolTrunc()
13895 PromOp.getOpcode() == ISD::SELECT_CC) { in DAGCombineExtBoolTrunc()
13896 if ((SelectTruncOp[0].count(PromOp.getNode()) && in DAGCombineExtBoolTrunc()
13897 PromOp.getOperand(0).getValueType() != N->getValueType(0)) || in DAGCombineExtBoolTrunc()
13898 (SelectTruncOp[1].count(PromOp.getNode()) && in DAGCombineExtBoolTrunc()
13899 PromOp.getOperand(1).getValueType() != N->getValueType(0))) { in DAGCombineExtBoolTrunc()
13900 PromOpHandles.emplace_front(PromOp); in DAGCombineExtBoolTrunc()
13905 SmallVector<SDValue, 3> Ops(PromOp.getNode()->op_begin(), in DAGCombineExtBoolTrunc()
13906 PromOp.getNode()->op_end()); in DAGCombineExtBoolTrunc()
13925 if (PromOp.getOpcode() == ISD::SELECT || in DAGCombineExtBoolTrunc()
13926 PromOp.getOpcode() == ISD::SELECT_CC) { in DAGCombineExtBoolTrunc()
13927 auto SI0 = SelectTruncOp[0].find(PromOp.getNode()); in DAGCombineExtBoolTrunc()
13930 auto SI1 = SelectTruncOp[1].find(PromOp.getNode()); in DAGCombineExtBoolTrunc()
13935 DAG.ReplaceAllUsesOfValueWith(PromOp, in DAGCombineExtBoolTrunc()
13936 DAG.getNode(PromOp.getOpcode(), dl, N->getValueType(0), Ops)); in DAGCombineExtBoolTrunc()