LLVM/project 60f406cllvm/lib/Transforms/Utils CodeExtractor.cpp, llvm/test/Transforms/HotColdSplit transfer-debug-info.ll

[CodeExtractor] Only rewrite scope of non-inlined variables

When a dbg.value instruction for a variable V is extracted into a new
function, the scope of the underlying variable should be set to the new
function iff V was in the scope of the old function (i.e. it hadn't been
inlined). Prior to this patch, the code extractor would always update
the scope of V.

Differential Revision: https://reviews.llvm.org/D139669
DeltaFile
+13-10llvm/lib/Transforms/Utils/CodeExtractor.cpp
+9-0llvm/test/Transforms/HotColdSplit/transfer-debug-info.ll
+22-102 files

UnifiedSplitRaw