[PATCH] D62686: [RISCV] Add support for save/restore of callee-saved registers via libcalls

Lewis Revill via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 14 03:59:26 PDT 2019


lewis-revill added a comment.

In D62686#1571192 <https://reviews.llvm.org/D62686#1571192>, @asb wrote:

> Hi Lewis, did you evaluate implementing the machine outliner as a more general approach for getting code size savings in this sort of way?


I've added D66210 <https://reviews.llvm.org/D66210> as a very basic implementation of the machine outliner, the results are currently slightly better than this save/restore approach, but I'm not certain the implementation isn't too relaxed about what can be outlined. It's worth noting that enabling both the optimizations at once doesn't diminish the gains you get from the machine outliner.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62686/new/

https://reviews.llvm.org/D62686





More information about the llvm-commits mailing list