[llvm] r369837 - [X86] Add an assert to mark more code that needs to be removed when the vector widening legalization switch is removed again.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 23 22:59:46 PDT 2019
Author: ctopper
Date: Fri Aug 23 22:59:46 2019
New Revision: 369837
URL: http://llvm.org/viewvc/llvm-project?rev=369837&view=rev
Log:
[X86] Add an assert to mark more code that needs to be removed when the vector widening legalization switch is removed again.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=369837&r1=369836&r2=369837&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Fri Aug 23 22:59:46 2019
@@ -20390,8 +20390,11 @@ static SDValue LowerVSETCC(SDValue Op, c
// 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.
More information about the llvm-commits
mailing list