[PATCH] D70424: clang/AMDGPU: Fix default for frame-pointer attribute

Tony Tye via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 25 13:05:40 PST 2019


t-tye added a comment.

@scott.linder can answer about the -g question, but I would expect that the CFI is capable of describing the address of the CFA regardless of whether there is a frame pointer by simply knowing the constant offset from the stack pointer.

For AMDGPU it seems to me what we really have is an FP and we optimize away the SP since the stack grows low address to high address, and S32 points to the base of the frame, and not the top of the stack.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70424/new/

https://reviews.llvm.org/D70424





More information about the cfe-commits mailing list