OSDN Git Service

In thumb mode, R3 is reserved, but it can be live in to the function. If
authorEvan Cheng <evan.cheng@apple.com>
Wed, 7 Feb 2007 09:17:36 +0000 (09:17 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 7 Feb 2007 09:17:36 +0000 (09:17 +0000)
commit8bed6c968fd7164222bc0cf4b86686c88381c3b8
treec967ead91f7545288d52af859502893637d9a7e4
parent1f253d6e97f6be21210d03b748c07954313605e3
In thumb mode, R3 is reserved, but it can be live in to the function. If
that is the case, whenever we use it as a scratch register, save it to R12
first and then restore it after the use.
This is a temporary and truly horrible workaround!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33999 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMMachineFunctionInfo.h
lib/Target/ARM/ARMRegisterInfo.cpp