Home | History | Annotate | Download | only in SelectionDAG

Lines Matching refs:UNDEF

110 /// BUILD_VECTOR where all of the elements are ~0 or undef.
120 // Skip over all of the undef values.
121 while (i != e && N->getOperand(i).getOpcode() == ISD::UNDEF)
124 // Do not accept an all-undef vector.
153 N->getOperand(i).getOpcode() != ISD::UNDEF)
160 /// BUILD_VECTOR where all of the elements are 0 or undef.
170 // Skip over all of the undef values.
171 while (i != e && N->getOperand(i).getOpcode() == ISD::UNDEF)
174 // Do not accept an all-undef vector.
193 N->getOperand(i).getOpcode() != ISD::UNDEF)
200 /// element is not an undef.
207 if (N->getOperand(0).getOpcode() == ISD::UNDEF)
214 if (V.getOpcode() != ISD::UNDEF)
1268 // Canonicalize shuffle undef, undef -> undef
1269 if (N1.getOpcode() == ISD::UNDEF && N2.getOpcode() == ISD::UNDEF)
1281 // Canonicalize shuffle v, v -> v, undef
1288 // Canonicalize shuffle undef, v -> v, undef. Commute the shuffle mask.
1289 if (N1.getOpcode() == ISD::UNDEF)
1292 // Canonicalize all index into lhs, -> shuffle lhs, undef
1293 // Canonicalize all index into rhs, -> shuffle rhs, undef
1295 bool N2Undef = N2.getOpcode() == ISD::UNDEF;
1315 // If Identity shuffle, or all shuffle in to undef, return that node.
2478 if (Operand.getOpcode() == ISD::UNDEF)
2493 else if (OpOpcode == ISD::UNDEF)
2494 // sext(undef) = 0, because the top bits will all be the same.
2510 else if (OpOpcode == ISD::UNDEF)
2511 // zext(undef) = 0, because the top bits will be zero.
2529 else if (OpOpcode == ISD::UNDEF)
2561 if (OpOpcode == ISD::UNDEF)
2571 if (OpOpcode == ISD::UNDEF)
2581 if (OpOpcode == ISD::UNDEF)
2839 // EXTRACT_VECTOR_ELT of an UNDEF is an UNDEF.
2840 if (N1.getOpcode() == ISD::UNDEF)
3008 // Canonicalize an UNDEF to the RHS, even over a constant.
3009 if (N1.getOpcode() == ISD::UNDEF) {
3021 return N1; // fold op(undef, arg2) -> undef
3029 return getConstant(0, VT); // fold op(undef, arg2) -> 0
3037 // Fold a bunch of operators when the RHS is undef.
3038 if (N2.getOpcode() == ISD::UNDEF) {
3041 if (N1.getOpcode() == ISD::UNDEF)
3042 // Handle undef ^ undef -> 0 special case. This is a common
3054 return N2; // fold op(arg1, undef) -> undef
3068 return getConstant(0, VT); // fold op(arg1, undef) -> 0
3249 assert(Value.getOpcode() != ISD::UNDEF);
3415 // Turn a memcpy of undef to nop.
3416 if (Src.getOpcode() == ISD::UNDEF)
3510 // Turn a memmove of undef to nop.
3511 if (Src.getOpcode() == ISD::UNDEF)
3588 // Turn a memset of undef to nop.
3589 if (Src.getOpcode() == ISD::UNDEF)
4127 if (OffsetOp.getOpcode() == ISD::UNDEF)
4189 assert((Indexed || Offset.getOpcode() == ISD::UNDEF) &&
4220 SDValue Undef = getUNDEF(Ptr.getValueType());
4221 return getLoad(ISD::UNINDEXED, ISD::NON_EXTLOAD, VT, dl, Chain, Ptr, Undef,
4231 SDValue Undef = getUNDEF(Ptr.getValueType());
4232 return getLoad(ISD::UNINDEXED, ExtType, VT, dl, Chain, Ptr, Undef,
4242 assert(LD->getOffset().getOpcode() == ISD::UNDEF &&
4283 SDValue Undef = getUNDEF(Ptr.getValueType());
4284 SDValue Ops[] = { Chain, Val, Ptr, Undef };
4350 SDValue Undef = getUNDEF(Ptr.getValueType());
4351 SDValue Ops[] = { Chain, Val, Ptr, Undef };
4373 assert(ST->getOffset().getOpcode() == ISD::UNDEF &&
6067 // of the vector is an ISD::UNDEF value) are set in SplatUndef and cleared
6079 if (OpVal.getOpcode() == ISD::UNDEF)
6102 // If the two halves do not match (ignoring undef bits), stop here.
6118 // Find the first non-undef value in the shuffle mask.
6123 assert(i != e && "VECTOR_SHUFFLE node with all undef indices!");
6125 // Make sure all remaining elements are either undef or the same as the first
6126 // non-undef value.