[PATCH] D159277: [RISCV] Disable zcmp push/pop for variadic functions.

Yeting Kuo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 31 05:51:58 PDT 2023


fakepaper56 created this revision.
fakepaper56 added reviewers: VincentWu, craig.topper, Jim, KYG, reames, frasercrmck.
Herald added subscribers: jobnoorman, luke, sunshaoce, vkmr, luismarques, apazos, sameer.abuasal, s.egerton, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, arichardson.
Herald added a project: All.
fakepaper56 requested review of this revision.
Herald added subscribers: llvm-commits, wangpc, eopXD, MaskRay.
Herald added a project: LLVM.

Variadic function needs a save region for variable arguement and the region is
possible to be overlaped with the region of zcmp push/pop used.

The patch also replaces useSaveRestoreLibCalls with direct check for save-restore feature.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D159277

Files:
  llvm/lib/Target/RISCV/RISCVMachineFunctionInfo.h
  llvm/test/CodeGen/RISCV/callee-saved-gprs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159277.555004.patch
Type: text/x-patch
Size: 8250 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230831/a83a339e/attachment.bin>


More information about the llvm-commits mailing list