forked from OSchip/llvm-project
[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:
parent
18ba192843
commit
f7ae101d95
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue