[PATCH] D89483: [ARM][MachineOutliner] Emit more CFI instructions
Momchil Velikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 15 10:02:57 PDT 2020
chill created this revision.
chill added reviewers: paquette, yroux, efriedma.
Herald added subscribers: llvm-commits, danielkiss, hiraditya, kristof.beyls.
Herald added a project: LLVM.
chill requested review of this revision.
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.
https://reviews.llvm.org/D89483
Files:
llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
llvm/lib/Target/ARM/ARMBaseInstrInfo.h
llvm/test/CodeGen/ARM/machine-outliner-cfi-1.ll
llvm/test/CodeGen/ARM/machine-outliner-cfi-2.ll
llvm/test/CodeGen/ARM/machine-outliner-cfi-3.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89483.298406.patch
Type: text/x-patch
Size: 16332 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201015/134dbbcf/attachment.bin>
More information about the llvm-commits
mailing list