summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86FastISel.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-08-30 18:08:58 +0000
committerCraig Topper <craig.topper@intel.com>2017-08-30 18:08:58 +0000
commitf7ae101d95793c2c57bcf0f30fb39c7b76e72028 (patch)
tree460019e53ecd8da31463c1b750ce1a20b8692dc4 /llvm/lib/Target/X86/X86FastISel.cpp
parent18ba1928436d719fd4a93dbdd0113c7698f9c2e7 (diff)
downloadbcm5719-llvm-f7ae101d95793c2c57bcf0f30fb39c7b76e72028.tar.gz
bcm5719-llvm-f7ae101d95793c2c57bcf0f30fb39c7b76e72028.zip
[X86] Remove unneed AVX512 check from fast isel.
This is no longer necessary now that i1 is illegal. llvm-svn: 312146
Diffstat (limited to 'llvm/lib/Target/X86/X86FastISel.cpp')
-rw-r--r--llvm/lib/Target/X86/X86FastISel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp
index 928a37a1408..ef83cac3baf 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;
OpenPOWER on IntegriCloud