Lines Matching refs:PromOp

13255   for (auto &PromOp : PromOps)  in DAGCombineTruncBoolExt()  local
13256 PromOpHandles.emplace_back(PromOp); in DAGCombineTruncBoolExt()
13264 SDValue PromOp = PromOpHandles.back().getValue(); in DAGCombineTruncBoolExt() local
13267 if (PromOp.getOpcode() == ISD::TRUNCATE || in DAGCombineTruncBoolExt()
13268 PromOp.getOpcode() == ISD::SIGN_EXTEND || in DAGCombineTruncBoolExt()
13269 PromOp.getOpcode() == ISD::ZERO_EXTEND || in DAGCombineTruncBoolExt()
13270 PromOp.getOpcode() == ISD::ANY_EXTEND) { in DAGCombineTruncBoolExt()
13271 if (!isa<ConstantSDNode>(PromOp.getOperand(0)) && in DAGCombineTruncBoolExt()
13272 PromOp.getOperand(0).getValueType() != MVT::i1) { in DAGCombineTruncBoolExt()
13274 PromOpHandles.emplace_front(PromOp); in DAGCombineTruncBoolExt()
13278 SDValue RepValue = PromOp.getOperand(0); in DAGCombineTruncBoolExt()
13282 DAG.ReplaceAllUsesOfValueWith(PromOp, RepValue); in DAGCombineTruncBoolExt()
13287 switch (PromOp.getOpcode()) { in DAGCombineTruncBoolExt()
13293 if ((!isa<ConstantSDNode>(PromOp.getOperand(C)) && in DAGCombineTruncBoolExt()
13294 PromOp.getOperand(C).getValueType() != MVT::i1) || in DAGCombineTruncBoolExt()
13295 (!isa<ConstantSDNode>(PromOp.getOperand(C+1)) && in DAGCombineTruncBoolExt()
13296 PromOp.getOperand(C+1).getValueType() != MVT::i1)) { in DAGCombineTruncBoolExt()
13301 PromOpHandles.emplace_front(PromOp); in DAGCombineTruncBoolExt()
13305 SmallVector<SDValue, 3> Ops(PromOp.getNode()->op_begin(), in DAGCombineTruncBoolExt()
13306 PromOp.getNode()->op_end()); in DAGCombineTruncBoolExt()
13313 DAG.ReplaceAllUsesOfValueWith(PromOp, in DAGCombineTruncBoolExt()
13314 DAG.getNode(PromOp.getOpcode(), dl, MVT::i1, Ops)); in DAGCombineTruncBoolExt()
13508 for (auto &PromOp : PromOps) in DAGCombineExtBoolTrunc() local
13509 PromOpHandles.emplace_back(PromOp); in DAGCombineExtBoolTrunc()
13516 SDValue PromOp = PromOpHandles.back().getValue(); in DAGCombineExtBoolTrunc() local
13520 switch (PromOp.getOpcode()) { in DAGCombineExtBoolTrunc()
13526 if ((!isa<ConstantSDNode>(PromOp.getOperand(C)) && in DAGCombineExtBoolTrunc()
13527 PromOp.getOperand(C).getValueType() != N->getValueType(0)) || in DAGCombineExtBoolTrunc()
13528 (!isa<ConstantSDNode>(PromOp.getOperand(C+1)) && in DAGCombineExtBoolTrunc()
13529 PromOp.getOperand(C+1).getValueType() != N->getValueType(0))) { in DAGCombineExtBoolTrunc()
13534 PromOpHandles.emplace_front(PromOp); in DAGCombineExtBoolTrunc()
13540 if (PromOp.getOpcode() == ISD::SELECT || in DAGCombineExtBoolTrunc()
13541 PromOp.getOpcode() == ISD::SELECT_CC) { in DAGCombineExtBoolTrunc()
13542 if ((SelectTruncOp[0].count(PromOp.getNode()) && in DAGCombineExtBoolTrunc()
13543 PromOp.getOperand(0).getValueType() != N->getValueType(0)) || in DAGCombineExtBoolTrunc()
13544 (SelectTruncOp[1].count(PromOp.getNode()) && in DAGCombineExtBoolTrunc()
13545 PromOp.getOperand(1).getValueType() != N->getValueType(0))) { in DAGCombineExtBoolTrunc()
13546 PromOpHandles.emplace_front(PromOp); in DAGCombineExtBoolTrunc()
13551 SmallVector<SDValue, 3> Ops(PromOp.getNode()->op_begin(), in DAGCombineExtBoolTrunc()
13552 PromOp.getNode()->op_end()); in DAGCombineExtBoolTrunc()
13571 if (PromOp.getOpcode() == ISD::SELECT || in DAGCombineExtBoolTrunc()
13572 PromOp.getOpcode() == ISD::SELECT_CC) { in DAGCombineExtBoolTrunc()
13573 auto SI0 = SelectTruncOp[0].find(PromOp.getNode()); in DAGCombineExtBoolTrunc()
13576 auto SI1 = SelectTruncOp[1].find(PromOp.getNode()); in DAGCombineExtBoolTrunc()
13581 DAG.ReplaceAllUsesOfValueWith(PromOp, in DAGCombineExtBoolTrunc()
13582 DAG.getNode(PromOp.getOpcode(), dl, N->getValueType(0), Ops)); in DAGCombineExtBoolTrunc()