Try to fix: https://github.com/llvm/llvm-project/issues/54879
When checking if the epilogue is symmetric to or a subset of the prologue, unwinding NOP should be skipped.
Differential D125433
[ARM64][SEH] PR54879: Packed Unwind Info when Homing Int Param Regs zzheng on May 11 2022, 4:54 PM. Authored by
Details Try to fix: https://github.com/llvm/llvm-project/issues/54879 When checking if the epilogue is symmetric to or a subset of the prologue, unwinding NOP should be skipped.
Diff Detail
Unit Tests Event Timeline
Comment Actions As discussed in https://github.com/llvm/llvm-project/issues/54879, we decide not to pack unwind info when homing int param regs. |
We also use checkPackedEpilog() for to compute the epilogue offset in xdata records; we can't mess with the result for the sake of analyzing packed unwind. If you need a different analysis, please split it into a separate function, or use a flag. (Probably easier to understand if you split it into a separate function?)