[PATCH] D79141: [RISCV] Better Split Stack Pointer Adjustment for RVC
Sam Elliott via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 29 16:13:01 PDT 2020
lenary created this revision.
lenary added reviewers: asb, luismarques, shiva0217.
Herald added subscribers: llvm-commits, evandro, apazos, sameer.abuasal, pzheng, s.egerton, Jim, benna, psnobl, jocewei, PkmX, rkruppe, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, MaskRay, jrtc27, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya.
Herald added a project: LLVM.
We recieved a report that split SP adjustment was not performing optimally when
compressed instructions were available. This patch more closely matches the
`FirstSPAdjustAmount` to the available instructions, so that loading and storing
the callee-saved registers is done with compressed instructions on architectures
that support them.
This patch also contains a fix to the type of `SecondSPAdjustAmount` to
correctly track and check the sign of this adjustment.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D79141
Files:
llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
llvm/test/CodeGen/RISCV/split-sp-adjust.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79141.261080.patch
Type: text/x-patch
Size: 15222 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200429/f551d3ce/attachment.bin>
More information about the llvm-commits
mailing list