[PATCH] D136222: [LoongArch] Split SP adjustment

wanglei via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 18 20:00:06 PDT 2022


wangleiat created this revision.
wangleiat added reviewers: SixWeining, xen0n, xry111, gonglingqin, MaskRay.
Herald added subscribers: StephenFan, luismarques, s.egerton, PkmX, simoncook, hiraditya, arichardson.
Herald added a project: All.
wangleiat requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead.
Herald added a project: LLVM.

This patch split the SP adjustment to reduce the instructions in
prologue and epilogue. In this way, the offset of the callee saved
register could fit in a single store.

Similar to D68011 <https://reviews.llvm.org/D68011>(RISCV).

Depends on D136074 <https://reviews.llvm.org/D136074>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136222

Files:
  llvm/lib/Target/LoongArch/LoongArchFrameLowering.cpp
  llvm/lib/Target/LoongArch/LoongArchFrameLowering.h
  llvm/test/CodeGen/LoongArch/split-sp-adjust.ll
  llvm/test/CodeGen/LoongArch/stack-realignment.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136222.468769.patch
Type: text/x-patch
Size: 13783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221019/fc14162f/attachment.bin>


More information about the llvm-commits mailing list