From f7ae101d95793c2c57bcf0f30fb39c7b76e72028 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 30 Aug 2017 18:08:58 +0000 Subject: [PATCH] [X86] Remove unneed AVX512 check from fast isel. This is no longer necessary now that i1 is illegal. llvm-svn: 312146 --- llvm/lib/Target/X86/X86FastISel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp index 928a37a1408e..ef83cac3baf8 100644 --- a/llvm/lib/Target/X86/X86FastISel.cpp +++ b/llvm/lib/Target/X86/X86FastISel.cpp @@ -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;