mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-18 17:39:04 +00:00
On Darwin, frame pointer r7 is never available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73434 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f57478f381
commit
88cc7c4194
@ -385,7 +385,7 @@ ARMRegisterInfo::getAllocationOrder(const TargetRegisterClass *RC,
|
||||
|
||||
|
||||
if (Hint.first == ARMRI::RegPairEven) {
|
||||
if (!hasFP(MF)) {
|
||||
if (!STI.isTargetDarwin() && !hasFP(MF)) {
|
||||
if (!STI.isR9Reserved())
|
||||
return std::make_pair(GPREven1,
|
||||
GPREven1 + (sizeof(GPREven1)/sizeof(unsigned)));
|
||||
@ -408,7 +408,7 @@ ARMRegisterInfo::getAllocationOrder(const TargetRegisterClass *RC,
|
||||
GPREven6 + (sizeof(GPREven6)/sizeof(unsigned)));
|
||||
}
|
||||
} else if (Hint.first == ARMRI::RegPairOdd) {
|
||||
if (!hasFP(MF)) {
|
||||
if (!STI.isTargetDarwin() && !hasFP(MF)) {
|
||||
if (!STI.isR9Reserved())
|
||||
return std::make_pair(GPROdd1,
|
||||
GPROdd1 + (sizeof(GPROdd1)/sizeof(unsigned)));
|
||||
|
Loading…
Reference in New Issue
Block a user