ARM: consolidate frame pointer register knowledge
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 18 May 2014 03:18:09 +0000 (03:18 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 18 May 2014 03:18:09 +0000 (03:18 +0000)
commit4da07c20388a2f3ec8dcf8f2910cde86cb228cbf
treecc646e3bdfc7b38885b8df92c5fd0b36f24183c0
parent82b1114fef542b98f4744d3d1a7e8562d1c962a5
ARM: consolidate frame pointer register knowledge

Use the ARMBaseRegisterInfo to query the frame register.  The base register info
is aware of the frame register that is used for the frame pointer.  Use that to
determine the frame register rather than duplicating the knowledge.  Although,
the code path is slightly different in that it may return SP, that can only
occur if the frame pointer has been omitted in the machine function, which is
supposed to contain the desired value in that case.

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