[PATCH] D72801: [CodeExtractor] Transfer debug info to extracted function

Vedant Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 15 12:51:12 PST 2020


vsk created this revision.
vsk added reviewers: aprantl, ABataev.
Herald added a subscriber: hiraditya.
Herald added a reviewer: jdoerfert.
Herald added a project: LLVM.

After extracting, fix up debug info in both the old and new functions by

1. Pointing line locations and debug intrinsics to the new subprogram scope, and

2. Deleting intrinsics which point to values outside of the new function.

Depends on https://reviews.llvm.org/D72795.

Testing: check-llvm, check-clang, a build of LNT in the `-Os -g` config
with "-mllvm -hot-cold-split=1" set, and end-to-end debugging of a toy
program which undergoes splitting to verify that lldb can find
variables, single step, etc. in extracted code.

rdar://45507940


https://reviews.llvm.org/D72801

Files:
  llvm/lib/Transforms/Utils/CodeExtractor.cpp
  llvm/test/Transforms/HotColdSplit/split-out-dbg-label.ll
  llvm/test/Transforms/HotColdSplit/transfer-debug-info.ll
  llvm/test/Transforms/HotColdSplit/update-split-loop-metadata.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72801.238336.patch
Type: text/x-patch
Size: 15111 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200115/801e9243/attachment-0001.bin>


More information about the llvm-commits mailing list