[all-commits] [llvm/llvm-project] df552e: Update the CFA to use $sp when $fp is restored on ...
Jason Molenda via All-commits
all-commits at lists.llvm.org
Wed May 4 14:54:35 PDT 2022
Author: Jason Molenda <jason at molenda.com>
Date: 2022-05-04 (Wed, 04 May 2022)
Update the CFA to use $sp when $fp is restored on arm64
In UnwindAssemblyInstEmulation we correctly recognize when a LDP
restores the fp & lr in an epilogue, and mark them as having the
caller's contents now, but we don't update the CFA register rule
at that point to indicate that the CFA is now calculated in terms
of $sp. This doesn't impact the backtrace because the register
contents are all <same> now, but it can confuse the stepper when
the StackID changes mid-epilogue.
Differential Revision: https://reviews.llvm.org/D124492
More information about the All-commits