Lines Matching refs:PromOp
9951 for (auto &PromOp : PromOps) in DAGCombineTruncBoolExt() local
9952 PromOpHandles.emplace_back(PromOp); in DAGCombineTruncBoolExt()
9960 SDValue PromOp = PromOpHandles.back().getValue(); in DAGCombineTruncBoolExt() local
9963 if (PromOp.getOpcode() == ISD::TRUNCATE || in DAGCombineTruncBoolExt()
9964 PromOp.getOpcode() == ISD::SIGN_EXTEND || in DAGCombineTruncBoolExt()
9965 PromOp.getOpcode() == ISD::ZERO_EXTEND || in DAGCombineTruncBoolExt()
9966 PromOp.getOpcode() == ISD::ANY_EXTEND) { in DAGCombineTruncBoolExt()
9967 if (!isa<ConstantSDNode>(PromOp.getOperand(0)) && in DAGCombineTruncBoolExt()
9968 PromOp.getOperand(0).getValueType() != MVT::i1) { in DAGCombineTruncBoolExt()
9970 PromOpHandles.emplace_front(PromOp); in DAGCombineTruncBoolExt()
9974 SDValue RepValue = PromOp.getOperand(0); in DAGCombineTruncBoolExt()
9978 DAG.ReplaceAllUsesOfValueWith(PromOp, RepValue); in DAGCombineTruncBoolExt()
9983 switch (PromOp.getOpcode()) { in DAGCombineTruncBoolExt()
9989 if ((!isa<ConstantSDNode>(PromOp.getOperand(C)) && in DAGCombineTruncBoolExt()
9990 PromOp.getOperand(C).getValueType() != MVT::i1) || in DAGCombineTruncBoolExt()
9991 (!isa<ConstantSDNode>(PromOp.getOperand(C+1)) && in DAGCombineTruncBoolExt()
9992 PromOp.getOperand(C+1).getValueType() != MVT::i1)) { in DAGCombineTruncBoolExt()
9997 PromOpHandles.emplace_front(PromOp); in DAGCombineTruncBoolExt()
10001 SmallVector<SDValue, 3> Ops(PromOp.getNode()->op_begin(), in DAGCombineTruncBoolExt()
10002 PromOp.getNode()->op_end()); in DAGCombineTruncBoolExt()
10009 DAG.ReplaceAllUsesOfValueWith(PromOp, in DAGCombineTruncBoolExt()
10010 DAG.getNode(PromOp.getOpcode(), dl, MVT::i1, Ops)); in DAGCombineTruncBoolExt()
10205 for (auto &PromOp : PromOps) in DAGCombineExtBoolTrunc() local
10206 PromOpHandles.emplace_back(PromOp); in DAGCombineExtBoolTrunc()
10213 SDValue PromOp = PromOpHandles.back().getValue(); in DAGCombineExtBoolTrunc() local
10217 switch (PromOp.getOpcode()) { in DAGCombineExtBoolTrunc()
10223 if ((!isa<ConstantSDNode>(PromOp.getOperand(C)) && in DAGCombineExtBoolTrunc()
10224 PromOp.getOperand(C).getValueType() != N->getValueType(0)) || in DAGCombineExtBoolTrunc()
10225 (!isa<ConstantSDNode>(PromOp.getOperand(C+1)) && in DAGCombineExtBoolTrunc()
10226 PromOp.getOperand(C+1).getValueType() != N->getValueType(0))) { in DAGCombineExtBoolTrunc()
10231 PromOpHandles.emplace_front(PromOp); in DAGCombineExtBoolTrunc()
10237 if (PromOp.getOpcode() == ISD::SELECT || in DAGCombineExtBoolTrunc()
10238 PromOp.getOpcode() == ISD::SELECT_CC) { in DAGCombineExtBoolTrunc()
10239 if ((SelectTruncOp[0].count(PromOp.getNode()) && in DAGCombineExtBoolTrunc()
10240 PromOp.getOperand(0).getValueType() != N->getValueType(0)) || in DAGCombineExtBoolTrunc()
10241 (SelectTruncOp[1].count(PromOp.getNode()) && in DAGCombineExtBoolTrunc()
10242 PromOp.getOperand(1).getValueType() != N->getValueType(0))) { in DAGCombineExtBoolTrunc()
10243 PromOpHandles.emplace_front(PromOp); in DAGCombineExtBoolTrunc()
10248 SmallVector<SDValue, 3> Ops(PromOp.getNode()->op_begin(), in DAGCombineExtBoolTrunc()
10249 PromOp.getNode()->op_end()); in DAGCombineExtBoolTrunc()
10268 if (PromOp.getOpcode() == ISD::SELECT || in DAGCombineExtBoolTrunc()
10269 PromOp.getOpcode() == ISD::SELECT_CC) { in DAGCombineExtBoolTrunc()
10270 auto SI0 = SelectTruncOp[0].find(PromOp.getNode()); in DAGCombineExtBoolTrunc()
10273 auto SI1 = SelectTruncOp[1].find(PromOp.getNode()); in DAGCombineExtBoolTrunc()
10278 DAG.ReplaceAllUsesOfValueWith(PromOp, in DAGCombineExtBoolTrunc()
10279 DAG.getNode(PromOp.getOpcode(), dl, N->getValueType(0), Ops)); in DAGCombineExtBoolTrunc()