[X86] Add an assert to mark more code that needs to be removed when the vector wideni...
authorCraig Topper <craig.topper@intel.com>
Sat, 24 Aug 2019 05:59:46 +0000 (05:59 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 24 Aug 2019 05:59:46 +0000 (05:59 +0000)
llvm-svn: 369837

llvm/lib/Target/X86/X86ISelLowering.cpp

index f1b4b29292092345c507d74c5e75da51ed0aea28..05218a3d6d21c5e6b031b350b701bc3ab7256eb4 100644 (file)
@@ -20390,8 +20390,11 @@ static SDValue LowerVSETCC(SDValue Op, const X86Subtarget &Subtarget,
 
   // 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.