[MachineOutliner][AArch64] Ensure LR is live-in when inserting reg-save calls
authorJessica Paquette <jpaquette@apple.com>
Thu, 9 Sep 2021 00:32:54 +0000 (17:32 -0700)
committerJessica Paquette <jpaquette@apple.com>
Thu, 9 Sep 2021 00:44:27 +0000 (17:44 -0700)
commit22a64d4a143d0d549cc762e1a19260078d1836c2
tree85b4190f405bb094698ce4a4ada8e3f419e9e5c1
parenteae44c8a863b49d6419ccfceb4f38803d2d9c30c
[MachineOutliner][AArch64] Ensure LR is live-in when inserting reg-save calls

Similar to other code which handles creating the function frame.

If LR isn't live-in to the block that we're inserting the call into, we'll get
a MachineVerifier error.
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
llvm/test/CodeGen/AArch64/machine-outliner-create-lr-livein.mir [new file with mode: 0644]