[PATCH] D130560: [RISCV] Handle register spill in branch relaxation
Piggy via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 26 03:24:46 PDT 2022
piggynl created this revision.
Herald added subscribers: sunshaoce, VincentWu, luke957, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, arichardson, qcolombet.
Herald added a project: All.
piggynl requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.
When scavenger finds no available register used for "jump" pseudo instruction, spill a register to a stack slot before the jump and restore it after the jump.
Depends on D129999 <https://reviews.llvm.org/D129999>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D130560
Files:
llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
llvm/lib/Target/RISCV/RISCVMachineFunctionInfo.h
llvm/test/CodeGen/RISCV/branch-relaxation-spill-32.ll
llvm/test/CodeGen/RISCV/branch-relaxation-spill-64.ll
llvm/test/CodeGen/RISCV/branch-relaxation.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130560.447635.patch
Type: text/x-patch
Size: 29792 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220726/d0311db1/attachment.bin>
More information about the llvm-commits
mailing list