]> granicus.if.org Git - llvm/commit
[PEI] Separate saving and restoring CSRs into different functions. NFC
authorFrancis Visoiu Mistrih <fvisoiumistrih@apple.com>
Thu, 20 Jul 2017 20:17:17 +0000 (20:17 +0000)
committerFrancis Visoiu Mistrih <fvisoiumistrih@apple.com>
Thu, 20 Jul 2017 20:17:17 +0000 (20:17 +0000)
commitc39bccc79fca5586c9e2efd17627a49f7c289aa7
tree53175da094cbe970439e5d3cc9e3ae06cb6a3c29
parent29fa98aa846aa6ccb5ad6ebaee7a196d6a9e7c11
[PEI] Separate saving and restoring CSRs into different functions. NFC

Split insertCSRSpillsAndRestores into insertCSRSaves + insertCSRRestores.

This is mostly useful for future shrink-wrapping improvements where we
want to save / restore a specific part of the CSRs in a specific block.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308664 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/PrologEpilogInserter.cpp