[MachineOutliner] Don't save/restore LR for tail calls.
authorEli Friedman <efriedma@codeaurora.org>
Wed, 16 May 2018 19:49:01 +0000 (19:49 +0000)
committerEli Friedman <efriedma@codeaurora.org>
Wed, 16 May 2018 19:49:01 +0000 (19:49 +0000)
commit02709bcb78a4c209d2bbe6541ae32308bc7c2833
tree86e275e8efac5f0bbc4fffe0c03bf76385034b22
parent4f9c59f863f253b52bd9cd91be917ecfca811a24
[MachineOutliner] Don't save/restore LR for tail calls.

The cost computation assumes we do this correctly, but the actual
lowering was wrong.

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

llvm-svn: 332514
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
llvm/test/CodeGen/AArch64/machine-outliner-tail.ll [new file with mode: 0644]