[llvm] 56bf0b5 - [X86] Add an assert that v32i16/v64i8 splitting in LowerVSETCC should only occur when AVX512BW is disabled. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat May 9 11:24:41 PDT 2020
Author: Craig Topper
Date: 2020-05-09T11:24:16-07:00
New Revision: 56bf0b58c24c4292a2345e646298f5aba67dffb5
URL: https://github.com/llvm/llvm-project/commit/56bf0b58c24c4292a2345e646298f5aba67dffb5
DIFF: https://github.com/llvm/llvm-project/commit/56bf0b58c24c4292a2345e646298f5aba67dffb5.diff
LOG: [X86] Add an assert that v32i16/v64i8 splitting in LowerVSETCC should only occur when AVX512BW is disabled. NFC
With BWI we should only get a v32i1/v64i1 result type.
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 7df01883ef90..cadef9a5fc23 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -22231,8 +22231,10 @@ static SDValue LowerVSETCC(SDValue Op, const X86Subtarget &Subtarget,
if (VT.is256BitVector() && !Subtarget.hasInt256())
return splitIntVSETCC(Op, DAG);
- if (VT == MVT::v32i16 || VT == MVT::v64i8)
+ if (VT == MVT::v32i16 || VT == MVT::v64i8) {
+ assert(!Subtarget.hasBWI() && "Unexpected VT with AVX512BW!");
return splitIntVSETCC(Op, DAG);
+ }
// If this is a SETNE against the signed minimum value, change it to SETGT.
// If this is a SETNE against the signed maximum value, change it to SETLT.
More information about the llvm-commits
mailing list