aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorOrlando Cazalet-Hyams <orlando.hyams@sony.com>2025-05-06 13:48:14 +0100
committerGitHub <noreply@github.com>2025-05-06 13:48:14 +0100
commitee7f6a5c6f8e9b8ad87da70e869cb7cc8065be2d (patch)
tree75b430244d0556574df10bf248f3cbc2d394e772 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parente8adb3add5d7043178045b2235e32efbec5d6419 (diff)
downloadllvm-ee7f6a5c6f8e9b8ad87da70e869cb7cc8065be2d.zip
llvm-ee7f6a5c6f8e9b8ad87da70e869cb7cc8065be2d.tar.gz
llvm-ee7f6a5c6f8e9b8ad87da70e869cb7cc8065be2d.tar.bz2
[KeyInstr] Merge atoms in DILocation::getMergedLocation (#133480)
NFC for builds with LLVM_EXPERIMENTAL_KEY_INSTRUCTIONS=OFF (default). In an ideal world we would be able to track that the merged location is used in multiple source atoms. We can't do this though, so instead we arbitrarily but deterministically pick one. In cases where the InlinedAt field is unchanged we keep the atom with the lowest non-zero rank (highest precedence). If the ranks are equal we choose the smaller non-zero group number (arbitrary choice). In cases where the InlinedAt field is adjusted we generate a new atom group. Keeping the group wouldn't make sense (a source atom is identified by the group number and InlinedAt pair) but discarding the atom info could result in missed is_stmts. Add unittest in MetadataTest.cpp. RFC: https://discourse.llvm.org/t/rfc-improving-is-stmt-placement-for-better-interactive-debugging/82668
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions