From 284e47c69252d78caf3bf28e0ce5e0ddb2ed39ae Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sat, 24 Aug 2019 05:59:46 +0000 Subject: [PATCH] [X86] Add an assert to mark more code that needs to be removed when the vector widening legalization switch is removed again. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369837 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86ISelLowering.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index f1b4b292920..05218a3d6d2 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -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. -- 2.50.1