[PATCH] D100532: [RISCV] Don't emit save-restore call if function is a interrupt handler
Jim Lin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 15 00:54:01 PDT 2021
Jim created this revision.
Herald added subscribers: vkmr, frasercrmck, evandro, 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.
Jim requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.
It has to save all caller-saved registers before a call in the handler.
So don't emit a call that save/restore registers.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D100532
Files:
llvm/lib/Target/RISCV/RISCVMachineFunctionInfo.h
llvm/test/CodeGen/RISCV/interrupt-attr-save-restore-call.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100532.337650.patch
Type: text/x-patch
Size: 5786 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210415/5d7acb62/attachment.bin>
More information about the llvm-commits
mailing list