[PATCH] D96938: [RFC] [Coroutine] [Debug] Insert dbg.declare to entry.resume to print alloca in the coroutine frame under O2
Adrian Prantl via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 3 14:17:07 PST 2021
aprantl added a comment.
I looked at your example in the debugger and the problem seems to be that SROA is being run before LowerDbgDeclare (from Local.cpp). I believe reversing the order might work. Alternatively we could just not create an alloca in coro::salvageDebugInfo if optimizations are enabled, but I am not sure if this is known to the pass.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96938/new/
https://reviews.llvm.org/D96938
More information about the llvm-commits
mailing list