Lines Matching refs:N0

6672   SDValue N0 = N->getOperand(0);  in combineZERO_EXTEND()  local
6674 if (N0.getOpcode() == SystemZISD::SELECT_CCMASK) { in combineZERO_EXTEND()
6675 auto *TrueOp = dyn_cast<ConstantSDNode>(N0.getOperand(0)); in combineZERO_EXTEND()
6676 auto *FalseOp = dyn_cast<ConstantSDNode>(N0.getOperand(1)); in combineZERO_EXTEND()
6678 SDLoc DL(N0); in combineZERO_EXTEND()
6681 N0.getOperand(2), N0.getOperand(3), N0.getOperand(4) }; in combineZERO_EXTEND()
6684 if (!N0.hasOneUse()) { in combineZERO_EXTEND()
6686 DAG.getNode(ISD::TRUNCATE, DL, N0.getValueType(), NewSelect); in combineZERO_EXTEND()
6687 DCI.CombineTo(N0.getNode(), TruncSelect); in combineZERO_EXTEND()
6695 if (N0.getOpcode() == ISD::XOR && in combineZERO_EXTEND()
6696 N0.hasOneUse() && N0.getOperand(0).hasOneUse() && in combineZERO_EXTEND()
6697 N0.getOperand(0).getOpcode() == ISD::TRUNCATE && in combineZERO_EXTEND()
6698 N0.getOperand(1).getOpcode() == ISD::Constant) { in combineZERO_EXTEND()
6699 SDValue X = N0.getOperand(0).getOperand(0); in combineZERO_EXTEND()
6703 N0.getValueSizeInBits(), in combineZERO_EXTEND()
6707 APInt Mask = N0.getConstantOperandAPInt(1).zext(VT.getSizeInBits()); in combineZERO_EXTEND()
6708 return DAG.getNode(ISD::XOR, SDLoc(N0), VT, in combineZERO_EXTEND()
6709 X, DAG.getConstant(Mask, SDLoc(N0), VT)); in combineZERO_EXTEND()
6723 SDValue N0 = N->getOperand(0); in combineSIGN_EXTEND_INREG() local
6726 if (N0.hasOneUse() && N0.getOpcode() == ISD::ANY_EXTEND) in combineSIGN_EXTEND_INREG()
6727 N0 = N0.getOperand(0); in combineSIGN_EXTEND_INREG()
6728 if (EVT == MVT::i1 && N0.hasOneUse() && N0.getOpcode() == ISD::SETCC) { in combineSIGN_EXTEND_INREG()
6729 SDLoc DL(N0); in combineSIGN_EXTEND_INREG()
6730 SDValue Ops[] = { N0.getOperand(0), N0.getOperand(1), in combineSIGN_EXTEND_INREG()
6732 DAG.getConstant(0, DL, VT), N0.getOperand(2) }; in combineSIGN_EXTEND_INREG()
6744 SDValue N0 = N->getOperand(0); in combineSIGN_EXTEND() local
6746 if (N0.hasOneUse() && N0.getOpcode() == ISD::SRA) { in combineSIGN_EXTEND()
6747 auto *SraAmt = dyn_cast<ConstantSDNode>(N0.getOperand(1)); in combineSIGN_EXTEND()
6748 SDValue Inner = N0.getOperand(0); in combineSIGN_EXTEND()
6751 unsigned Extra = (VT.getSizeInBits() - N0.getValueSizeInBits()); in combineSIGN_EXTEND()
6754 EVT ShiftVT = N0.getOperand(1).getValueType(); in combineSIGN_EXTEND()
6760 return DAG.getNode(ISD::SRA, SDLoc(N0), VT, Shl, in combineSIGN_EXTEND()
6761 DAG.getConstant(NewSraAmt, SDLoc(N0), ShiftVT)); in combineSIGN_EXTEND()