Lines Matching refs:PromOp

14275   for (auto &PromOp : PromOps)  in DAGCombineTruncBoolExt()  local
14276 PromOpHandles.emplace_back(PromOp); in DAGCombineTruncBoolExt()
14284 SDValue PromOp = PromOpHandles.back().getValue(); in DAGCombineTruncBoolExt() local
14287 if (PromOp.getOpcode() == ISD::TRUNCATE || in DAGCombineTruncBoolExt()
14288 PromOp.getOpcode() == ISD::SIGN_EXTEND || in DAGCombineTruncBoolExt()
14289 PromOp.getOpcode() == ISD::ZERO_EXTEND || in DAGCombineTruncBoolExt()
14290 PromOp.getOpcode() == ISD::ANY_EXTEND) { in DAGCombineTruncBoolExt()
14291 if (!isa<ConstantSDNode>(PromOp.getOperand(0)) && in DAGCombineTruncBoolExt()
14292 PromOp.getOperand(0).getValueType() != MVT::i1) { in DAGCombineTruncBoolExt()
14294 PromOpHandles.emplace_front(PromOp); in DAGCombineTruncBoolExt()
14298 SDValue RepValue = PromOp.getOperand(0); in DAGCombineTruncBoolExt()
14302 DAG.ReplaceAllUsesOfValueWith(PromOp, RepValue); in DAGCombineTruncBoolExt()
14307 switch (PromOp.getOpcode()) { in DAGCombineTruncBoolExt()
14313 if ((!isa<ConstantSDNode>(PromOp.getOperand(C)) && in DAGCombineTruncBoolExt()
14314 PromOp.getOperand(C).getValueType() != MVT::i1) || in DAGCombineTruncBoolExt()
14315 (!isa<ConstantSDNode>(PromOp.getOperand(C+1)) && in DAGCombineTruncBoolExt()
14316 PromOp.getOperand(C+1).getValueType() != MVT::i1)) { in DAGCombineTruncBoolExt()
14321 PromOpHandles.emplace_front(PromOp); in DAGCombineTruncBoolExt()
14325 SmallVector<SDValue, 3> Ops(PromOp.getNode()->op_begin(), in DAGCombineTruncBoolExt()
14326 PromOp.getNode()->op_end()); in DAGCombineTruncBoolExt()
14333 DAG.ReplaceAllUsesOfValueWith(PromOp, in DAGCombineTruncBoolExt()
14334 DAG.getNode(PromOp.getOpcode(), dl, MVT::i1, Ops)); in DAGCombineTruncBoolExt()
14522 for (auto &PromOp : PromOps) in DAGCombineExtBoolTrunc() local
14523 PromOpHandles.emplace_back(PromOp); in DAGCombineExtBoolTrunc()
14530 SDValue PromOp = PromOpHandles.back().getValue(); in DAGCombineExtBoolTrunc() local
14534 switch (PromOp.getOpcode()) { in DAGCombineExtBoolTrunc()
14540 if ((!isa<ConstantSDNode>(PromOp.getOperand(C)) && in DAGCombineExtBoolTrunc()
14541 PromOp.getOperand(C).getValueType() != N->getValueType(0)) || in DAGCombineExtBoolTrunc()
14542 (!isa<ConstantSDNode>(PromOp.getOperand(C+1)) && in DAGCombineExtBoolTrunc()
14543 PromOp.getOperand(C+1).getValueType() != N->getValueType(0))) { in DAGCombineExtBoolTrunc()
14548 PromOpHandles.emplace_front(PromOp); in DAGCombineExtBoolTrunc()
14554 if (PromOp.getOpcode() == ISD::SELECT || in DAGCombineExtBoolTrunc()
14555 PromOp.getOpcode() == ISD::SELECT_CC) { in DAGCombineExtBoolTrunc()
14556 if ((SelectTruncOp[0].count(PromOp.getNode()) && in DAGCombineExtBoolTrunc()
14557 PromOp.getOperand(0).getValueType() != N->getValueType(0)) || in DAGCombineExtBoolTrunc()
14558 (SelectTruncOp[1].count(PromOp.getNode()) && in DAGCombineExtBoolTrunc()
14559 PromOp.getOperand(1).getValueType() != N->getValueType(0))) { in DAGCombineExtBoolTrunc()
14560 PromOpHandles.emplace_front(PromOp); in DAGCombineExtBoolTrunc()
14565 SmallVector<SDValue, 3> Ops(PromOp.getNode()->op_begin(), in DAGCombineExtBoolTrunc()
14566 PromOp.getNode()->op_end()); in DAGCombineExtBoolTrunc()
14585 if (PromOp.getOpcode() == ISD::SELECT || in DAGCombineExtBoolTrunc()
14586 PromOp.getOpcode() == ISD::SELECT_CC) { in DAGCombineExtBoolTrunc()
14587 auto SI0 = SelectTruncOp[0].find(PromOp.getNode()); in DAGCombineExtBoolTrunc()
14590 auto SI1 = SelectTruncOp[1].find(PromOp.getNode()); in DAGCombineExtBoolTrunc()
14595 DAG.ReplaceAllUsesOfValueWith(PromOp, in DAGCombineExtBoolTrunc()
14596 DAG.getNode(PromOp.getOpcode(), dl, N->getValueType(0), Ops)); in DAGCombineExtBoolTrunc()