HomePhabricator

[RISCV] Don't emit save-restore call if function is a interrupt handler

Authored by Jim on Thu, Apr 15, 9:50 PM.

Description

[RISCV] Don't emit save-restore call if function is a interrupt handler

It has to save all caller-saved registers before a call in the handler.
So don't emit a call that save/restore registers.

Reviewed By: simoncook, luismarques, asb

Differential Revision: https://reviews.llvm.org/D100532

Details