Home | History | Annotate | Download | only in SelectionDAG

Lines Matching defs:Undef

96 /// BUILD_VECTOR where all of the elements are ~0 or undef.
106 // Skip over all of the undef values.
107 while (i != e && N->getOperand(i).getOpcode() == ISD::UNDEF)
110 // Do not accept an all-undef vector.
137 N->getOperand(i).getOpcode() != ISD::UNDEF)
144 /// BUILD_VECTOR where all of the elements are 0 or undef.
154 if (N->getOperand(i).getOpcode() == ISD::UNDEF)
177 // Do not accept an all-undef vector.
184 /// all ConstantSDNode or undef.
191 if (Op.getOpcode() == ISD::UNDEF)
200 /// all ConstantFPSDNode or undef.
207 if (Op.getOpcode() == ISD::UNDEF)
217 /// element is not an undef.
224 if (N->getOperand(0).getOpcode() == ISD::UNDEF)
231 if (V.getOpcode() != ISD::UNDEF)
238 /// and all operands of the specified node are ISD::UNDEF.
247 if (N->getOperand(i).getOpcode() != ISD::UNDEF)
1473 // Canonicalize shuffle undef, undef -> undef
1474 if (N1.getOpcode() == ISD::UNDEF && N2.getOpcode() == ISD::UNDEF)
1486 // Canonicalize shuffle v, v -> v, undef
1493 // Canonicalize shuffle undef, v -> v, undef. Commute the shuffle mask.
1494 if (N1.getOpcode() == ISD::UNDEF)
1509 // If this input comes from undef, mark it as such.
1515 // If we can blend a non-undef lane, use that instead.
1525 // Canonicalize all index into lhs, -> shuffle lhs, undef
1526 // Canonicalize all index into rhs, -> shuffle rhs, undef
1528 bool N2Undef = N2.getOpcode() == ISD::UNDEF;
1547 // Reset our undef status after accounting for the mask.
1548 N2Undef = N2.getOpcode() == ISD::UNDEF;
1549 // Re-check whether both sides ended up undef.
1550 if (N1.getOpcode() == ISD::UNDEF && N2Undef)
1575 // If this is a splat of an undef, shuffling it is also undef.
1576 if (Splat && Splat.getOpcode() == ISD::UNDEF)
1583 // value and no undef lanes rearranged by the shuffle.
2871 if (OpN.getOpcode() != ISD::UNDEF &&
2900 if (Operand.getOpcode() == ISD::UNDEF)
2915 else if (OpOpcode == ISD::UNDEF)
2916 // sext(undef) = 0, because the top bits will all be the same.
2932 else if (OpOpcode == ISD::UNDEF)
2933 // zext(undef) = 0, because the top bits will be zero.
2951 else if (OpOpcode == ISD::UNDEF)
2983 if (OpOpcode == ISD::UNDEF)
2993 if (OpOpcode == ISD::UNDEF)
3003 if (OpOpcode == ISD::UNDEF)
3189 // Concat of UNDEFs is UNDEF.
3190 if (N1.getOpcode() == ISD::UNDEF &&
3191 N2.getOpcode() == ISD::UNDEF)
3375 // EXTRACT_VECTOR_ELT of an UNDEF is an UNDEF.
3376 if (N1.getOpcode() == ISD::UNDEF)
3545 // Canonicalize an UNDEF to the RHS, even over a constant.
3546 if (N1.getOpcode() == ISD::UNDEF) {
3558 return N1; // fold op(undef, arg2) -> undef
3566 return getConstant(0, VT); // fold op(undef, arg2) -> 0
3574 // Fold a bunch of operators when the RHS is undef.
3575 if (N2.getOpcode() == ISD::UNDEF) {
3578 if (N1.getOpcode() == ISD::UNDEF)
3579 // Handle undef ^ undef -> 0 special case. This is a common
3591 return N2; // fold op(arg1, undef) -> undef
3605 return getConstant(0, VT); // fold op(arg1, undef) -> 0
3789 assert(Value.getOpcode() != ISD::UNDEF);
4011 // Turn a memcpy of undef to nop.
4012 if (Src.getOpcode() == ISD::UNDEF)
4126 // Turn a memmove of undef to nop.
4127 if (Src.getOpcode() == ISD::UNDEF)
4220 // Turn a memset of undef to nop.
4221 if (Src.getOpcode() == ISD::UNDEF)
4741 if (OffsetOp.getOpcode() == ISD::UNDEF)
4803 assert((Indexed || Offset.getOpcode() == ISD::UNDEF) &&
4836 SDValue Undef = getUNDEF(Ptr.getValueType());
4837 return getLoad(ISD::UNINDEXED, ISD::NON_EXTLOAD, VT, dl, Chain, Ptr, Undef,
4845 SDValue Undef = getUNDEF(Ptr.getValueType());
4846 return getLoad(ISD::UNINDEXED, ISD::NON_EXTLOAD, VT, dl, Chain, Ptr, Undef,
4856 SDValue Undef = getUNDEF(Ptr.getValueType());
4857 return getLoad(ISD::UNINDEXED, ExtType, VT, dl, Chain, Ptr, Undef,
4866 SDValue Undef = getUNDEF(Ptr.getValueType());
4867 return getLoad(ISD::UNINDEXED, ExtType, VT, dl, Chain, Ptr, Undef,
4875 assert(LD->getOffset().getOpcode() == ISD::UNDEF &&
4916 SDValue Undef = getUNDEF(Ptr.getValueType());
4917 SDValue Ops[] = { Chain, Val, Ptr, Undef };
4985 SDValue Undef = getUNDEF(Ptr.getValueType());
4986 SDValue Ops[] = { Chain, Val, Ptr, Undef };
5010 assert(ST->getOffset().getOpcode() == ISD::UNDEF &&
6810 // of the vector is an ISD::UNDEF value) are set in SplatUndef and cleared
6822 if (OpVal.getOpcode() == ISD::UNDEF)
6845 // If the two halves do not match (ignoring undef bits), stop here.
6868 if (Op.getOpcode() == ISD::UNDEF) {
6879 assert(getOperand(0).getOpcode() == ISD::UNDEF &&
6902 if (Opc != ISD::UNDEF && Opc != ISD::Constant && Opc != ISD::ConstantFP)
6909 // Find the first non-undef value in the shuffle mask.
6914 assert(i != e && "VECTOR_SHUFFLE node with all undef indices!");
6916 // Make sure all remaining elements are either undef or the same as the first
6917 // non-undef value.