[X86] Remove unneed AVX512 check from fast isel.
This is no longer necessary now that i1 is illegal.
llvm-svn: 312146
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp
index 928a37a..ef83cac 100644
--- a/llvm/lib/Target/X86/X86FastISel.cpp
+++ b/llvm/lib/Target/X86/X86FastISel.cpp
@@ -2468,8 +2468,7 @@
EVT DstVT = TLI.getValueType(DL, I->getType());
// This code only handles truncation to byte.
- // TODO: Support truncate to i1 with AVX512.
- if (DstVT != MVT::i8 && (DstVT != MVT::i1 || Subtarget->hasAVX512()))
+ if (DstVT != MVT::i8 && DstVT != MVT::i1)
return false;
if (!TLI.isTypeLegal(SrcVT))
return false;