[llvm] 7914e4f - [VE] Add v(m)regs to preserve_all reg mask

Simon Moll via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 6 06:16:25 PST 2020


Author: Simon Moll
Date: 2020-11-06T15:16:11+01:00
New Revision: 7914e4f0fa60e42c68854932a942e3adb98914f6

URL: https://github.com/llvm/llvm-project/commit/7914e4f0fa60e42c68854932a942e3adb98914f6
DIFF: https://github.com/llvm/llvm-project/commit/7914e4f0fa60e42c68854932a942e3adb98914f6.diff

LOG: [VE] Add v(m)regs to preserve_all reg mask

V(m)regs where defined before CSR_preserve_all was, add them now.

Reviewed By: kaz7

Differential Revision: https://reviews.llvm.org/D90912

Added: 
    

Modified: 
    llvm/lib/Target/VE/VECallingConv.td

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/VE/VECallingConv.td b/llvm/lib/Target/VE/VECallingConv.td
index e316e9dab704..69e591f9e905 100644
--- a/llvm/lib/Target/VE/VECallingConv.td
+++ b/llvm/lib/Target/VE/VECallingConv.td
@@ -102,4 +102,6 @@ def CSR : CalleeSavedRegs<(add (sequence "SX%u", 18, 33))>;
 def CSR_NoRegs : CalleeSavedRegs<(add)>;
 
 // PreserveAll (clobbers s62,s63) - used for ve_grow_stack
-def CSR_preserve_all : CalleeSavedRegs<(add (sequence "SX%u", 0, 61))>;
+def CSR_preserve_all : CalleeSavedRegs<(add (sequence "SX%u", 0, 61),
+                                            (sequence "V%u", 0, 63),
+                                            (sequence "VM%u", 1, 15))>;


        


More information about the llvm-commits mailing list