[PATCH] D35644: [PEI] Separate saving and restoring CSRs into different functions. NFC

Francis Visoiu Mistrih via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 19 14:07:52 PDT 2017


thegameg created this revision.

Split `insertCSRSpillsAndRestores` into `insertCSRSaves` + `insertCSRRestores`.

Refactored the restore part to use indices instead of multiple iterators.

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.


https://reviews.llvm.org/D35644

Files:
  lib/CodeGen/PrologEpilogInserter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35644.107371.patch
Type: text/x-patch
Size: 6099 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170719/73a746c6/attachment.bin>


More information about the llvm-commits mailing list