Fix coordination for using R4 in Thumb1 as a scratch for SP restore.
authorJim Grosbach <grosbach@apple.com>
Mon, 13 Jun 2011 21:18:25 +0000 (21:18 +0000)
committerJim Grosbach <grosbach@apple.com>
Mon, 13 Jun 2011 21:18:25 +0000 (21:18 +0000)
commit7980f61f5ff408b947474cd1c3715896d28ea578
tree0a898c39a64df69c1c6f9c1d0687d499dbcc5390
parentff276b40f0bfd72938f964061c13ed18be7c008f
Fix coordination for using R4 in Thumb1 as a scratch for SP restore.

The logic for reserving R4 for use as a scratch needs to match that for
actually using it. Also, it's not necessary for immediate <=508, so adjust
the value checked.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132934 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMFrameLowering.cpp
lib/Target/ARM/Thumb1FrameLowering.cpp