[PATCH] D93497: Salvage debug info for function arguments in coro-split funclets.
Adrian Prantl via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 8 15:51:47 PST 2021
aprantl added a comment.
> Do you have any plan to salvage debug info under O2 <https://reviews.llvm.org/owners/package/2/> when most of the dbg.declare are changed to dbg.value?
I was hoping that in an optimization pipeline the coroutine splitting would be invoked //before// mem2reg. This patch is really depending on the semantics of dbg.declare, which guarantees that the address of the variable doesn't change throughout the entire function. With a dbg.value we don't have any such guarantees, since it's just a snapshot at one particular location.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93497/new/
https://reviews.llvm.org/D93497
More information about the llvm-commits
mailing list