llvm-project
84b5e9f8 - [RISCV] Add used callee-saved registers as implicit/implicit-def registers to save/restore call (#180133)

Commit
74 days ago
[RISCV] Add used callee-saved registers as implicit/implicit-def registers to save/restore call (#180133) We should add used callee-saved registers as implicit used to save libcall and as implicit defined to restore libcall. It likes what we did for CM_PUSH/CM_POPRET. That can help to construct correct dataflow. In entry bb, save libcall implicitly uses the callee-saved registers which live in. And in return bb, restore libcall implicitly defines the callee-saved registers which live out.
Author
Parents
Loading