[PATCH] Loop Vectorizer doesn't use %zmm registers on targets supporting AVX512.
Zinovy Nis
zinovy.nis at gmail.com
Fri Mar 14 05:42:43 PDT 2014
Hi delena, rob.khasanov, volkalexey, nadav,
http://llvm-reviews.chandlerc.com/D3078
CHANGE SINCE LAST DIFF
http://llvm-reviews.chandlerc.com/D3078?vs=7829&id=7830#toc
Files:
lib/Target/X86/X86TargetTransformInfo.cpp
Index: lib/Target/X86/X86TargetTransformInfo.cpp
===================================================================
--- lib/Target/X86/X86TargetTransformInfo.cpp
+++ lib/Target/X86/X86TargetTransformInfo.cpp
@@ -148,6 +148,7 @@
unsigned X86TTI::getRegisterBitWidth(bool Vector) const {
if (Vector) {
+ if (ST->hasAVX512()) return 512;
if (ST->hasAVX()) return 256;
if (ST->hasSSE1()) return 128;
return 0;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3078.2.patch
Type: text/x-patch
Size: 431 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140314/b95b215d/attachment.bin>
More information about the llvm-commits
mailing list