diff options
author | Orlando Cazalet-Hyams <orlando.hyams@sony.com> | 2025-05-06 14:38:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-06 14:38:41 +0100 |
commit | 73a7a3dc00300820c68927928405a442b2f73b4c (patch) | |
tree | 27290f21fd30a6f5d9e1de562b374c9a64536ad5 /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | e79dc76b5f9131bd4af7ad807492537450a9ff2c (diff) | |
download | llvm-73a7a3dc00300820c68927928405a442b2f73b4c.zip llvm-73a7a3dc00300820c68927928405a442b2f73b4c.tar.gz llvm-73a7a3dc00300820c68927928405a442b2f73b4c.tar.bz2 |
[KeyInstr] Inline atom info (#133481)
Source atom groups are identified by an atom group number and inlined-at pair,
so we simply can copy the atom numbers into the caller when inlining.
RFC:
https://discourse.llvm.org/t/rfc-improving-is-stmt-placement-for-better-interactive-debugging/82668
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/InlineFunction.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp index 7a91620..eaf57e7 100644 --- a/llvm/lib/Transforms/Utils/InlineFunction.cpp +++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp @@ -1819,7 +1819,8 @@ static DebugLoc inlineDebugLoc(DebugLoc OrigDL, DILocation *InlinedAt, DenseMap<const MDNode *, MDNode *> &IANodes) { auto IA = DebugLoc::appendInlinedAt(OrigDL, InlinedAt, Ctx, IANodes); return DILocation::get(Ctx, OrigDL.getLine(), OrigDL.getCol(), - OrigDL.getScope(), IA); + OrigDL.getScope(), IA, OrigDL.isImplicitCode(), + OrigDL->getAtomGroup(), OrigDL->getAtomRank()); } /// Update inlined instructions' line numbers to |