For local variables in functions with a frame pointer, use FP as a base
authorJim Grosbach <grosbach@apple.com>
Thu, 5 Aug 2010 19:27:37 +0000 (19:27 +0000)
committerJim Grosbach <grosbach@apple.com>
Thu, 5 Aug 2010 19:27:37 +0000 (19:27 +0000)
commite3ede5e2e4de6d028956c0b75c6bfa17ec50cc09
treeb8ecbda30d7ad8a353e31ad0267e8015a1bb935f
parent751aaf8ac586860df8f22c3707905d1a8005f1ba
For local variables in functions with a frame pointer, use FP as a base
register for local access when it's closer to the stack slot being refererenced
than the stack pointer. Make sure to take into account any argument frame
SP adjustments that are in affect at the time.

rdar://8256090

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