[PATCH] D134129: [PATCH] [RISCV] Enable -msave-restore by default when optimizing for size

Jun Sha via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 18 02:33:59 PDT 2022


joshua-arch1 created this revision.
joshua-arch1 added reviewers: asb, edward-jones, lewis-revill.
Herald added subscribers: sunshaoce, VincentWu, StephenFan, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
joshua-arch1 requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

Since spill and restore code of callee-saved registers has been implemented by common functions to reduce code duplication in the patch https://reviews.llvm.org/D62686, we can enable -msave-restore by default when we are optimizing for size in Oz.


https://reviews.llvm.org/D134129

Files:
  llvm/lib/Target/RISCV/RISCVMachineFunctionInfo.h
  llvm/test/CodeGen/RISCV/machine-outliner-throw.ll
  llvm/test/CodeGen/RISCV/saverestore.ll
  llvm/test/CodeGen/RISCV/shifts.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134129.461057.patch
Type: text/x-patch
Size: 4930 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220918/d65a431d/attachment.bin>


More information about the llvm-commits mailing list