summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2011-05-18 21:54:32 +0000
committerCameron Zwarich <zwarich@apple.com>2011-05-18 21:54:32 +0000
commit20a41cb2b21feeeaf4da56492387573086be843d (patch)
treefcff6be032676178db3562993a39d1bca5be4217
parentdb28247522af0a6190c9cab8dc32e7d4df9f5509 (diff)
downloadllvm-20a41cb2b21feeeaf4da56492387573086be843d.tar.gz
llvm-20a41cb2b21feeeaf4da56492387573086be843d.tar.bz2
llvm-20a41cb2b21feeeaf4da56492387573086be843d.tar.xz
Reserve r29 on Alpha. This fixes all verifier failures in CodeGen/Alpha.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131587 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/Alpha/AlphaRegisterInfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/Alpha/AlphaRegisterInfo.cpp b/lib/Target/Alpha/AlphaRegisterInfo.cpp
index 7667fd831d..53a464d3e4 100644
--- a/lib/Target/Alpha/AlphaRegisterInfo.cpp
+++ b/lib/Target/Alpha/AlphaRegisterInfo.cpp
@@ -69,6 +69,7 @@ const unsigned* AlphaRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF)
BitVector AlphaRegisterInfo::getReservedRegs(const MachineFunction &MF) const {
BitVector Reserved(getNumRegs());
Reserved.set(Alpha::R15);
+ Reserved.set(Alpha::R29);
Reserved.set(Alpha::R30);
Reserved.set(Alpha::R31);
return Reserved;