From: Craig Topper Date: Wed, 30 Aug 2017 18:08:58 +0000 (+0000) Subject: [X86] Remove unneed AVX512 check from fast isel. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08c4fd35a9d37535c16e9a8e467bdacf72d8dbad;p=llvm [X86] Remove unneed AVX512 check from fast isel. 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 --- diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp index 928a37a1408..ef83cac3baf 100644 --- a/lib/Target/X86/X86FastISel.cpp +++ b/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;