[PATCH] D90772: [Coroutines] Add missing llvm.dbg.declare's to cover more allocas
Xun Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 4 11:38:01 PST 2020
lxfind added a comment.
Thank you for working on this!
================
Comment at: llvm/lib/Transforms/Coroutines/CoroFrame.cpp:1213
+ // These instructions are all dominated by the alloca, insert the
+ // dbg.declare in the beginning of the BB to enhance debugging
+ // experience and be able to inspect values as early as possible.
----------------
Do we need to insert to every BB that uses it though? Though this may be the safest way to guarantee there is at least one, so I don't object doing this.
Also want to point out this: https://llvm.org/docs/SourceLevelDebugging.html#llvm-dbg-declare
it says there can only be one dbg.declare. However in practice I think as long as they all look the same it should be fine.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D90772/new/
https://reviews.llvm.org/D90772
More information about the llvm-commits
mailing list