[llvm] r312146 - [X86] Remove unneed AVX512 check from fast isel.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 30 11:08:58 PDT 2017
Author: ctopper
Date: Wed Aug 30 11:08:58 2017
New Revision: 312146
URL: http://llvm.org/viewvc/llvm-project?rev=312146&view=rev
Log:
[X86] Remove unneed AVX512 check from fast isel.
This is no longer necessary now that i1 is illegal.
Modified:
llvm/trunk/lib/Target/X86/X86FastISel.cpp
Modified: llvm/trunk/lib/Target/X86/X86FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FastISel.cpp?rev=312146&r1=312145&r2=312146&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FastISel.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FastISel.cpp Wed Aug 30 11:08:58 2017
@@ -2468,8 +2468,7 @@ bool X86FastISel::X86SelectTrunc(const 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;
More information about the llvm-commits
mailing list