[llvm] [CodeExtractor] Improve debug info for input values. (PR #136016)
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 23 03:20:59 PDT 2025
================
@@ -1239,11 +1239,19 @@ static void eraseDebugIntrinsicsWithNonLocalRefs(Function &F) {
}
}
-/// Fix up the debug info in the old and new functions by pointing line
-/// locations and debug intrinsics to the new subprogram scope, and by deleting
-/// intrinsics which point to values outside of the new function.
+/// Fix up the debug info in the old and new functions. Following changes are
+/// done.
+/// 1. If a debug record points to a value that has been replaced, update the
+/// record to use the new value.
----------------
Meinersbur wrote:
```suggestion
/// 1. If a debug record points to a value that has been replaced, update the
/// record to use the new value.
```
[nit] indention
https://github.com/llvm/llvm-project/pull/136016
More information about the llvm-commits
mailing list