[PATCH] D157500: [Thumb1] Use callee-saved register to adjust stack pointer

Keith Walker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 9 06:03:39 PDT 2023


keith.walker.arm created this revision.
keith.walker.arm added reviewers: stuij, john.brawn, olista01.
Herald added subscribers: hiraditya, qcolombet.
Herald added a project: All.
keith.walker.arm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

When adjusting the Stack Pointer at the end of the function epilogue,
use a callee-saved register, rather than explicitly using R4 <https://reviews.llvm.org/source/lld/> which may
not have been saved.


https://reviews.llvm.org/D157500

Files:
  llvm/lib/Target/ARM/Thumb1FrameLowering.cpp
  llvm/test/CodeGen/ARM/cmse.ll
  llvm/test/CodeGen/ARM/thumb1-varalloc.ll
  llvm/test/CodeGen/Thumb/2011-EpilogueBug.ll
  llvm/test/CodeGen/Thumb/callee_save.ll
  llvm/test/CodeGen/Thumb/emergency-spill-slot.ll
  llvm/test/CodeGen/Thumb/frame-chain.ll
  llvm/test/CodeGen/Thumb/large-stack.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157500.548590.patch
Type: text/x-patch
Size: 9900 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230809/3557b05a/attachment.bin>


More information about the llvm-commits mailing list