]> granicus.if.org Git - llvm/commitdiff
[X86] Remove unneed AVX512 check from fast isel.
authorCraig Topper <craig.topper@intel.com>
Wed, 30 Aug 2017 18:08:58 +0000 (18:08 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 30 Aug 2017 18:08:58 +0000 (18:08 +0000)
This is no longer necessary now that i1 is illegal.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312146 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86FastISel.cpp

index 928a37a1408efc7f83eece22b80b2969bb314211..ef83cac3baf880601fdae74a04bd007be9848128 100644 (file)
@@ -2468,8 +2468,7 @@ bool X86FastISel::X86SelectTrunc(const Instruction *I) {
   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;