[all-commits] [llvm/llvm-project] 360abb: [CodeExtractor] Transfer debug info to extracted f...

Vedant Kumar via All-commits all-commits at lists.llvm.org
Wed Jan 15 15:38:43 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 360abb7ee56f1524b6e2951a4fda36296d5b3582
      https://github.com/llvm/llvm-project/commit/360abb7ee56f1524b6e2951a4fda36296d5b3582
  Author: Vedant Kumar <vsk at apple.com>
  Date:   2020-01-15 (Wed, 15 Jan 2020)

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

  Log Message:
  -----------
  [CodeExtractor] Transfer debug info to extracted function

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

Differential Revision: https://reviews.llvm.org/D72801




More information about the All-commits mailing list