summaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86ISelLowering.cpp
diff options
context:
space:
mode:
authorCameron McInally <cameron.mcinally@nyu.edu>2014-06-16 14:12:28 +0000
committerCameron McInally <cameron.mcinally@nyu.edu>2014-06-16 14:12:28 +0000
commit5d57928a3254d36dc22877ebefac26520422eaa9 (patch)
tree86a9509246fd9cd78aea23870cc5634b9aa23128 /lib/Target/X86/X86ISelLowering.cpp
parentdfcd461d620acb306ee34f4d78c4644fafa861db (diff)
downloadllvm-5d57928a3254d36dc22877ebefac26520422eaa9.tar.gz
llvm-5d57928a3254d36dc22877ebefac26520422eaa9.tar.bz2
llvm-5d57928a3254d36dc22877ebefac26520422eaa9.tar.xz
Hook up vector int_ctlz for AVX512.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211024 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86ISelLowering.cpp')
-rw-r--r--lib/Target/X86/X86ISelLowering.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp
index 5e652e3182..851607eac9 100644
--- a/lib/Target/X86/X86ISelLowering.cpp
+++ b/lib/Target/X86/X86ISelLowering.cpp
@@ -1439,6 +1439,11 @@ void X86TargetLowering::resetOperationActions() {
setOperationAction(ISD::OR, MVT::v16i32, Legal);
setOperationAction(ISD::XOR, MVT::v16i32, Legal);
+ if (Subtarget->hasCDI()) {
+ setOperationAction(ISD::CTLZ, MVT::v8i64, Legal);
+ setOperationAction(ISD::CTLZ, MVT::v16i32, Legal);
+ }
+
// Custom lower several nodes.
for (int i = MVT::FIRST_VECTOR_VALUETYPE;
i <= MVT::LAST_VECTOR_VALUETYPE; ++i) {