[all-commits] [llvm/llvm-project] 18dbe6: [ARM][NFC] Tidy up subtarget frame pointer routines

tmatheson-arm via All-commits all-commits at lists.llvm.org
Sat Jun 19 09:01:15 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 18dbe6897857944653ee8f68dca8d63bc38aaff8
      https://github.com/llvm/llvm-project/commit/18dbe6897857944653ee8f68dca8d63bc38aaff8
  Author: Tomas Matheson <tomas.matheson at arm.com>
  Date:   2021-06-19 (Sat, 19 Jun 2021)

  Changed paths:
    M llvm/lib/Target/ARM/ARMAsmPrinter.cpp
    M llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp
    M llvm/lib/Target/ARM/ARMFrameLowering.cpp
    M llvm/lib/Target/ARM/ARMSubtarget.h
    M llvm/lib/Target/ARM/Thumb1FrameLowering.cpp

  Log Message:
  -----------
  [ARM][NFC] Tidy up subtarget frame pointer routines

getFramePointerReg only depends on information in ARMSubtarget,
so move it in there so it can be accessed from more places.

Make use of ARMSubtarget::getFramePointerReg to remove duplicated code.

The main use of useR7AsFramePointer is getFramePointerReg, so inline it.

Differential Revision: https://reviews.llvm.org/D104476




More information about the All-commits mailing list