It has to save all caller-saved registers before a call in the handler.
So don't emit a call that save/restore registers.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This LGTM, I've left a note on a potential comment update, but otherwise looks good
llvm/lib/Target/RISCV/RISCVMachineFunctionInfo.h | ||
---|---|---|
63 | Can you update this comment to put , or is an interrupt handler |
Comment Actions
Thanks, good catch. LGTM.
I wonder if this test should just go in the existing saverestore.ll test?
llvm/test/CodeGen/RISCV/saverestore.ll | ||
---|---|---|
304 | Inline the attribute |
Can you update this comment to put , or is an interrupt handler