Lines Matching refs:PromOp
9341 SDValue PromOp = PromOps.back(); in DAGCombineTruncBoolExt() local
9344 if (PromOp.getOpcode() == ISD::TRUNCATE || in DAGCombineTruncBoolExt()
9345 PromOp.getOpcode() == ISD::SIGN_EXTEND || in DAGCombineTruncBoolExt()
9346 PromOp.getOpcode() == ISD::ZERO_EXTEND || in DAGCombineTruncBoolExt()
9347 PromOp.getOpcode() == ISD::ANY_EXTEND) { in DAGCombineTruncBoolExt()
9348 if (!isa<ConstantSDNode>(PromOp.getOperand(0)) && in DAGCombineTruncBoolExt()
9349 PromOp.getOperand(0).getValueType() != MVT::i1) { in DAGCombineTruncBoolExt()
9351 PromOps.insert(PromOps.begin(), PromOp); in DAGCombineTruncBoolExt()
9355 SDValue RepValue = PromOp.getOperand(0); in DAGCombineTruncBoolExt()
9359 DAG.ReplaceAllUsesOfValueWith(PromOp, RepValue); in DAGCombineTruncBoolExt()
9364 switch (PromOp.getOpcode()) { in DAGCombineTruncBoolExt()
9370 if ((!isa<ConstantSDNode>(PromOp.getOperand(C)) && in DAGCombineTruncBoolExt()
9371 PromOp.getOperand(C).getValueType() != MVT::i1) || in DAGCombineTruncBoolExt()
9372 (!isa<ConstantSDNode>(PromOp.getOperand(C+1)) && in DAGCombineTruncBoolExt()
9373 PromOp.getOperand(C+1).getValueType() != MVT::i1)) { in DAGCombineTruncBoolExt()
9378 PromOps.insert(PromOps.begin(), PromOp); in DAGCombineTruncBoolExt()
9382 SmallVector<SDValue, 3> Ops(PromOp.getNode()->op_begin(), in DAGCombineTruncBoolExt()
9383 PromOp.getNode()->op_end()); in DAGCombineTruncBoolExt()
9390 DAG.ReplaceAllUsesOfValueWith(PromOp, in DAGCombineTruncBoolExt()
9391 DAG.getNode(PromOp.getOpcode(), dl, MVT::i1, Ops)); in DAGCombineTruncBoolExt()
9590 SDValue PromOp = PromOps.back(); in DAGCombineExtBoolTrunc() local
9594 switch (PromOp.getOpcode()) { in DAGCombineExtBoolTrunc()
9600 if ((!isa<ConstantSDNode>(PromOp.getOperand(C)) && in DAGCombineExtBoolTrunc()
9601 PromOp.getOperand(C).getValueType() != N->getValueType(0)) || in DAGCombineExtBoolTrunc()
9602 (!isa<ConstantSDNode>(PromOp.getOperand(C+1)) && in DAGCombineExtBoolTrunc()
9603 PromOp.getOperand(C+1).getValueType() != N->getValueType(0))) { in DAGCombineExtBoolTrunc()
9608 PromOps.insert(PromOps.begin(), PromOp); in DAGCombineExtBoolTrunc()
9614 if (PromOp.getOpcode() == ISD::SELECT || in DAGCombineExtBoolTrunc()
9615 PromOp.getOpcode() == ISD::SELECT_CC) { in DAGCombineExtBoolTrunc()
9616 if ((SelectTruncOp[0].count(PromOp.getNode()) && in DAGCombineExtBoolTrunc()
9617 PromOp.getOperand(0).getValueType() != N->getValueType(0)) || in DAGCombineExtBoolTrunc()
9618 (SelectTruncOp[1].count(PromOp.getNode()) && in DAGCombineExtBoolTrunc()
9619 PromOp.getOperand(1).getValueType() != N->getValueType(0))) { in DAGCombineExtBoolTrunc()
9620 PromOps.insert(PromOps.begin(), PromOp); in DAGCombineExtBoolTrunc()
9625 SmallVector<SDValue, 3> Ops(PromOp.getNode()->op_begin(), in DAGCombineExtBoolTrunc()
9626 PromOp.getNode()->op_end()); in DAGCombineExtBoolTrunc()
9645 if (PromOp.getOpcode() == ISD::SELECT || in DAGCombineExtBoolTrunc()
9646 PromOp.getOpcode() == ISD::SELECT_CC) { in DAGCombineExtBoolTrunc()
9647 auto SI0 = SelectTruncOp[0].find(PromOp.getNode()); in DAGCombineExtBoolTrunc()
9650 auto SI1 = SelectTruncOp[1].find(PromOp.getNode()); in DAGCombineExtBoolTrunc()
9655 DAG.ReplaceAllUsesOfValueWith(PromOp, in DAGCombineExtBoolTrunc()
9656 DAG.getNode(PromOp.getOpcode(), dl, N->getValueType(0), Ops)); in DAGCombineExtBoolTrunc()