HomePhabricator

[ARM][MachineOutliner] Emit more CFI instructions

Authored by chill on Nov 9 2020, 3:48 AM.

Description

[ARM][MachineOutliner] Emit more CFI instructions

This patch make the outliner emit CFI instructions in a few more
places:

  • after LR is restored, but before the return in an outlined function
  • around save/restore of LR to/from a register at calls to outlined functions
  • around save/restore of LR to/from the stack at calls to outlined functions

The latter two only when the function does NOT spill LR. If the
function spills LR, then outliner generated saves/restores around
calls are not considered interesting for unwinding the frame.

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

Details

Committed
chillNov 9 2020, 7:26 AM
Differential Revision
D89483: [ARM][MachineOutliner] Emit more CFI instructions
Parents
rGbbc3e03032c5: [X86] Remove some unused check-prefixes
Branches
Unknown
Tags
Unknown