Lines Matching refs:PromOp

14062   for (auto &PromOp : PromOps)  in DAGCombineTruncBoolExt()  local
14063 PromOpHandles.emplace_back(PromOp); in DAGCombineTruncBoolExt()
14071 SDValue PromOp = PromOpHandles.back().getValue(); in DAGCombineTruncBoolExt() local
14074 if (PromOp.getOpcode() == ISD::TRUNCATE || in DAGCombineTruncBoolExt()
14075 PromOp.getOpcode() == ISD::SIGN_EXTEND || in DAGCombineTruncBoolExt()
14076 PromOp.getOpcode() == ISD::ZERO_EXTEND || in DAGCombineTruncBoolExt()
14077 PromOp.getOpcode() == ISD::ANY_EXTEND) { in DAGCombineTruncBoolExt()
14078 if (!isa<ConstantSDNode>(PromOp.getOperand(0)) && in DAGCombineTruncBoolExt()
14079 PromOp.getOperand(0).getValueType() != MVT::i1) { in DAGCombineTruncBoolExt()
14081 PromOpHandles.emplace_front(PromOp); in DAGCombineTruncBoolExt()
14085 SDValue RepValue = PromOp.getOperand(0); in DAGCombineTruncBoolExt()
14089 DAG.ReplaceAllUsesOfValueWith(PromOp, RepValue); in DAGCombineTruncBoolExt()
14094 switch (PromOp.getOpcode()) { in DAGCombineTruncBoolExt()
14100 if ((!isa<ConstantSDNode>(PromOp.getOperand(C)) && in DAGCombineTruncBoolExt()
14101 PromOp.getOperand(C).getValueType() != MVT::i1) || in DAGCombineTruncBoolExt()
14102 (!isa<ConstantSDNode>(PromOp.getOperand(C+1)) && in DAGCombineTruncBoolExt()
14103 PromOp.getOperand(C+1).getValueType() != MVT::i1)) { in DAGCombineTruncBoolExt()
14108 PromOpHandles.emplace_front(PromOp); in DAGCombineTruncBoolExt()
14112 SmallVector<SDValue, 3> Ops(PromOp.getNode()->op_begin(), in DAGCombineTruncBoolExt()
14113 PromOp.getNode()->op_end()); in DAGCombineTruncBoolExt()
14120 DAG.ReplaceAllUsesOfValueWith(PromOp, in DAGCombineTruncBoolExt()
14121 DAG.getNode(PromOp.getOpcode(), dl, MVT::i1, Ops)); in DAGCombineTruncBoolExt()
14309 for (auto &PromOp : PromOps) in DAGCombineExtBoolTrunc() local
14310 PromOpHandles.emplace_back(PromOp); in DAGCombineExtBoolTrunc()
14317 SDValue PromOp = PromOpHandles.back().getValue(); in DAGCombineExtBoolTrunc() local
14321 switch (PromOp.getOpcode()) { in DAGCombineExtBoolTrunc()
14327 if ((!isa<ConstantSDNode>(PromOp.getOperand(C)) && in DAGCombineExtBoolTrunc()
14328 PromOp.getOperand(C).getValueType() != N->getValueType(0)) || in DAGCombineExtBoolTrunc()
14329 (!isa<ConstantSDNode>(PromOp.getOperand(C+1)) && in DAGCombineExtBoolTrunc()
14330 PromOp.getOperand(C+1).getValueType() != N->getValueType(0))) { in DAGCombineExtBoolTrunc()
14335 PromOpHandles.emplace_front(PromOp); in DAGCombineExtBoolTrunc()
14341 if (PromOp.getOpcode() == ISD::SELECT || in DAGCombineExtBoolTrunc()
14342 PromOp.getOpcode() == ISD::SELECT_CC) { in DAGCombineExtBoolTrunc()
14343 if ((SelectTruncOp[0].count(PromOp.getNode()) && in DAGCombineExtBoolTrunc()
14344 PromOp.getOperand(0).getValueType() != N->getValueType(0)) || in DAGCombineExtBoolTrunc()
14345 (SelectTruncOp[1].count(PromOp.getNode()) && in DAGCombineExtBoolTrunc()
14346 PromOp.getOperand(1).getValueType() != N->getValueType(0))) { in DAGCombineExtBoolTrunc()
14347 PromOpHandles.emplace_front(PromOp); in DAGCombineExtBoolTrunc()
14352 SmallVector<SDValue, 3> Ops(PromOp.getNode()->op_begin(), in DAGCombineExtBoolTrunc()
14353 PromOp.getNode()->op_end()); in DAGCombineExtBoolTrunc()
14372 if (PromOp.getOpcode() == ISD::SELECT || in DAGCombineExtBoolTrunc()
14373 PromOp.getOpcode() == ISD::SELECT_CC) { in DAGCombineExtBoolTrunc()
14374 auto SI0 = SelectTruncOp[0].find(PromOp.getNode()); in DAGCombineExtBoolTrunc()
14377 auto SI1 = SelectTruncOp[1].find(PromOp.getNode()); in DAGCombineExtBoolTrunc()
14382 DAG.ReplaceAllUsesOfValueWith(PromOp, in DAGCombineExtBoolTrunc()
14383 DAG.getNode(PromOp.getOpcode(), dl, N->getValueType(0), Ops)); in DAGCombineExtBoolTrunc()