[llvm] r269018 - [X86] Add ZMM registers to the X86_INTR calling convention preserved mask when AVX512 is enabled.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon May 9 22:28:02 PDT 2016
Author: ctopper
Date: Tue May 10 00:28:02 2016
New Revision: 269018
URL: http://llvm.org/viewvc/llvm-project?rev=269018&view=rev
Log:
[X86] Add ZMM registers to the X86_INTR calling convention preserved mask when AVX512 is enabled.
Modified:
llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp
Modified: llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp?rev=269018&r1=269017&r2=269018&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp Tue May 10 00:28:02 2016
@@ -385,6 +385,8 @@ X86RegisterInfo::getCallPreservedMask(co
return CSR_64_RegMask;
case CallingConv::X86_INTR:
if (Is64Bit) {
+ if (HasAVX512)
+ return CSR_64_AllRegs_AVX512_RegMask;
if (HasAVX)
return CSR_64_AllRegs_AVX_RegMask;
else
More information about the llvm-commits
mailing list