[PATCH] D104476: [ARM][NFC] Tidy up subtarget frame pointer routines
Tomas Matheson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 17 11:16:16 PDT 2021
tmatheson created this revision.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
tmatheson requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D104476
Files:
llvm/lib/Target/ARM/ARMAsmPrinter.cpp
llvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp
llvm/lib/Target/ARM/ARMFrameLowering.cpp
llvm/lib/Target/ARM/ARMSubtarget.h
llvm/lib/Target/ARM/Thumb1FrameLowering.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104476.352795.patch
Type: text/x-patch
Size: 5770 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210617/f2022c46/attachment.bin>
More information about the llvm-commits
mailing list