[PATCH] D119576: [debug-info] If one sees a spill with a dbg.addr use, salvageDebugInfo upon it and don't hoist it.
Michael Gottesman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 11 12:51:55 PST 2022
gottesmm created this revision.
gottesmm added a reviewer: aprantl.
Herald added a subscriber: hiraditya.
aprantl added a comment.
gottesmm updated this revision to Diff 408001.
gottesmm added a comment.
gottesmm published this revision for review.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This LGTM!
gottesmm added a comment.
Just publishing for review.
This ensures that if we have a dbg.addr in a coroutine funclet that is on one of
our function arguments, that the dbg.addr is not mapped to undef and also that
later it isn't hoisted to the front of the basic block. Instead it remains at
its original cloned location.
rdar://83957028
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D119576
Files:
llvm/lib/Transforms/Coroutines/CoroFrame.cpp
llvm/test/Transforms/Coroutines/coro-debug-dbg.addr-swift.ll
llvm/test/Transforms/Coroutines/coro-debug-dbg.addr.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119576.408001.patch
Type: text/x-patch
Size: 44435 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220211/92cc4fd0/attachment.bin>
More information about the llvm-commits
mailing list