Home | History | Annotate | Download | only in SelectionDAG

Lines Matching refs:UNDEF

95 /// BUILD_VECTOR where all of the elements are ~0 or undef.
105 // Skip over all of the undef values.
106 while (i != e && N->getOperand(i).getOpcode() == ISD::UNDEF)
109 // Do not accept an all-undef vector.
136 N->getOperand(i).getOpcode() != ISD::UNDEF)
143 /// BUILD_VECTOR where all of the elements are 0 or undef.
153 if (N->getOperand(i).getOpcode() == ISD::UNDEF)
176 // Do not accept an all-undef vector.
183 /// all ConstantSDNode or undef.
190 if (Op.getOpcode() == ISD::UNDEF)
200 /// element is not an undef.
207 if (N->getOperand(0).getOpcode() == ISD::UNDEF)
214 if (V.getOpcode() != ISD::UNDEF)
221 /// and all operands of the specified node are ISD::UNDEF.
230 if (N->getOperand(i).getOpcode() != ISD::UNDEF)
1484 // Canonicalize shuffle undef, undef -> undef
1485 if (N1.getOpcode() == ISD::UNDEF && N2.getOpcode() == ISD::UNDEF)
1497 // Canonicalize shuffle v, v -> v, undef
1504 // Canonicalize shuffle undef, v -> v, undef. Commute the shuffle mask.
1505 if (N1.getOpcode() == ISD::UNDEF)
1508 // Canonicalize all index into lhs, -> shuffle lhs, undef
1509 // Canonicalize all index into rhs, -> shuffle rhs, undef
1511 bool N2Undef = N2.getOpcode() == ISD::UNDEF;
1530 // Reset our undef status after accounting for the mask.
1531 N2Undef = N2.getOpcode() == ISD::UNDEF;
1532 // Re-check whether both sides ended up undef.
1533 if (N1.getOpcode() == ISD::UNDEF && N2Undef)
1557 // If this is a splat of an undef, shuffling it is also undef.
1558 if (Splat && Splat.getOpcode() == ISD::UNDEF)
1562 // value and no undef lanes rearranged by the shuffle.
2790 if (Operand.getOpcode() == ISD::UNDEF)
2805 else if (OpOpcode == ISD::UNDEF)
2806 // sext(undef) = 0, because the top bits will all be the same.
2822 else if (OpOpcode == ISD::UNDEF)
2823 // zext(undef) = 0, because the top bits will be zero.
2841 else if (OpOpcode == ISD::UNDEF)
2873 if (OpOpcode == ISD::UNDEF)
2883 if (OpOpcode == ISD::UNDEF)
2893 if (OpOpcode == ISD::UNDEF)
3082 // Concat of UNDEFs is UNDEF.
3083 if (N1.getOpcode() == ISD::UNDEF &&
3084 N2.getOpcode() == ISD::UNDEF)
3268 // EXTRACT_VECTOR_ELT of an UNDEF is an UNDEF.
3269 if (N1.getOpcode() == ISD::UNDEF)
3432 // Canonicalize an UNDEF to the RHS, even over a constant.
3433 if (N1.getOpcode() == ISD::UNDEF) {
3445 return N1; // fold op(undef, arg2) -> undef
3453 return getConstant(0, VT); // fold op(undef, arg2) -> 0
3461 // Fold a bunch of operators when the RHS is undef.
3462 if (N2.getOpcode() == ISD::UNDEF) {
3465 if (N1.getOpcode() == ISD::UNDEF)
3466 // Handle undef ^ undef -> 0 special case. This is a common
3478 return N2; // fold op(arg1, undef) -> undef
3492 return getConstant(0, VT); // fold op(arg1, undef) -> 0
3683 assert(Value.getOpcode() != ISD::UNDEF);
3890 // Turn a memcpy of undef to nop.
3891 if (Src.getOpcode() == ISD::UNDEF)
4007 // Turn a memmove of undef to nop.
4008 if (Src.getOpcode() == ISD::UNDEF)
4102 // Turn a memset of undef to nop.
4103 if (Src.getOpcode() == ISD::UNDEF)
4628 if (OffsetOp.getOpcode() == ISD::UNDEF)
4690 assert((Indexed || Offset.getOpcode() == ISD::UNDEF) &&
4723 SDValue Undef = getUNDEF(Ptr.getValueType());
4724 Undef,
4732 SDValue Undef = getUNDEF(Ptr.getValueType());
4733 return getLoad(ISD::UNINDEXED, ISD::NON_EXTLOAD, VT, dl, Chain, Ptr, Undef,
4742 SDValue Undef = getUNDEF(Ptr.getValueType());
4743 return getLoad(ISD::UNINDEXED, ExtType, VT, dl, Chain, Ptr, Undef,
4752 SDValue Undef = getUNDEF(Ptr.getValueType());
4753 return getLoad(ISD::UNINDEXED, ExtType, VT, dl, Chain, Ptr, Undef,
4761 assert(LD->getOffset().getOpcode() == ISD::UNDEF &&
4802 SDValue Undef = getUNDEF(Ptr.getValueType());
4803 SDValue Ops[] = { Chain, Val, Ptr, Undef };
4871 SDValue Undef = getUNDEF(Ptr.getValueType());
4872 SDValue Ops[] = { Chain, Val, Ptr, Undef };
4896 assert(ST->getOffset().getOpcode() == ISD::UNDEF &&
6636 // of the vector is an ISD::UNDEF value) are set in SplatUndef and cleared
6648 if (OpVal.getOpcode() == ISD::UNDEF)
6671 // If the two halves do not match (ignoring undef bits), stop here.
6694 if (Op.getOpcode() == ISD::UNDEF) {
6705 assert(getOperand(0).getOpcode() == ISD::UNDEF &&
6728 if (Opc != ISD::UNDEF && Opc != ISD::Constant && Opc != ISD::ConstantFP)
6735 // Find the first non-undef value in the shuffle mask.
6740 assert(i != e && "VECTOR_SHUFFLE node with all undef indices!");
6742 // Make sure all remaining elements are either undef or the same as the first
6743 // non-undef value.