[X86] Remove unneed AVX512 check from fast isel.

This is no longer necessary now that i1 is illegal.

llvm-svn: 312146
This commit is contained in:
Craig Topper 2017-08-30 18:08:58 +00:00
parent 18ba192843
commit f7ae101d95
1 changed files with 1 additions and 2 deletions

View File

@ -2468,8 +2468,7 @@ bool X86FastISel::X86SelectTrunc(const Instruction *I) {
EVT DstVT = TLI.getValueType(DL, I->getType()); EVT DstVT = TLI.getValueType(DL, I->getType());
// This code only handles truncation to byte. // This code only handles truncation to byte.
// TODO: Support truncate to i1 with AVX512. if (DstVT != MVT::i8 && DstVT != MVT::i1)
if (DstVT != MVT::i8 && (DstVT != MVT::i1 || Subtarget->hasAVX512()))
return false; return false;
if (!TLI.isTypeLegal(SrcVT)) if (!TLI.isTypeLegal(SrcVT))
return false; return false;