git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369837
91177308-0d34-0410-b5e6-
96231b3b80d8
// This is being called by type legalization because v2i32 is marked custom
// for result type legalization for v2f32.
- if (VTOp0 == MVT::v2i32)
+ if (VTOp0 == MVT::v2i32) {
+ assert(!ExperimentalVectorWideningLegalization &&
+ "Should only get here with promote legalization!");
return SDValue();
+ }
// The non-AVX512 code below works under the assumption that source and
// destination types are the same.