diff options
author | Jessica Paquette <jpaquette@apple.com> | 2018-07-30 17:45:28 +0000 |
---|---|---|
committer | Jessica Paquette <jpaquette@apple.com> | 2018-07-30 17:45:28 +0000 |
commit | fa3bee47569b1583e4319bbdbcd3f129345caa25 (patch) | |
tree | 58d72898764dd7b5bd7eee27cfc27ce8ccb9016a /clang | |
parent | 8692e142b38d92a5e3bc5ba82484d2e586acdc50 (diff) | |
download | bcm5719-llvm-fa3bee47569b1583e4319bbdbcd3f129345caa25.tar.gz bcm5719-llvm-fa3bee47569b1583e4319bbdbcd3f129345caa25.zip |
[MachineOutliner][AArch64] Add support for saving LR to a register
This teaches the outliner to save LR to a register rather than the stack when
possible. This allows us to avoid bumping the stack in outlined functions in
some cases. By doing this, in a later patch, we can teach the outliner to do
something like this:
f1:
...
bl OUTLINED_FUNCTION
...
f2:
...
move LR's contents to a register
bl OUTLINED_FUNCTION
move the register's contents back
instead of falling back to saving LR in both cases.
llvm-svn: 338278
Diffstat (limited to 'clang')
0 files changed, 0 insertions, 0 deletions