[AArch64] Exclude instructions after setting the FP from SEH prologues
authorMartin Storsjö <martin@martin.st>
Tue, 11 Oct 2022 12:11:39 +0000 (15:11 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 12 Oct 2022 09:36:21 +0000 (12:36 +0300)
commita07787c9a50c046e45921dd665f5a53a752bbc31
tree566e9fc4717511c9415f34da86f97010af64506d
parentd1b83b984fc1715fb7540dbb03ac8d170775b395
[AArch64] Exclude instructions after setting the FP from SEH prologues

After setting up the FP, the rest of the prologue doesn't need to
be replayed for unwinding the stack frame.

This allows reverting the functional parts of
2f7fbf837625267193351cc334e506a3a9161958 (but fixing inconsistent
duplicate setting of HasWinCFI).

Differential Revision: https://reviews.llvm.org/D135686
llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
llvm/test/CodeGen/AArch64/wineh-align-stack.ll
llvm/test/CodeGen/AArch64/wineh-frame6.mir
llvm/test/CodeGen/AArch64/wineh-try-catch.ll