diff options
author | Craig Topper <craig.topper@intel.com> | 2019-08-24 05:59:46 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2019-08-24 05:59:46 +0000 |
commit | dd2cf7838114c90b1513ba8591f4e615b2b0ce2a (patch) | |
tree | 68b238936bf087e0d9ae5ccd7d192f9583e23359 /llvm/lib | |
parent | eb70ac024931ab66e6f2185af9ef3a39e62b683c (diff) | |
download | bcm5719-llvm-dd2cf7838114c90b1513ba8591f4e615b2b0ce2a.tar.gz bcm5719-llvm-dd2cf7838114c90b1513ba8591f4e615b2b0ce2a.zip |
[X86] Add an assert to mark more code that needs to be removed when the vector widening legalization switch is removed again.
llvm-svn: 369837
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index f1b4b292920..05218a3d6d2 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/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. |