diff options
author | Alan Zhao <ayzhao@google.com> | 2024-06-20 10:48:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-20 10:48:18 -0700 |
commit | 836703087d761f9cbf81b6f9593bc5313660f559 (patch) | |
tree | fe6c461a15c2fdff3198e75071ea2e9b13fb85c0 /llvm/lib/Bitcode/Reader/MetadataLoader.cpp | |
parent | 5e9f247c064cb2361cd641f62eb4b7049d21641a (diff) | |
download | llvm-836703087d761f9cbf81b6f9593bc5313660f559.zip llvm-836703087d761f9cbf81b6f9593bc5313660f559.tar.gz llvm-836703087d761f9cbf81b6f9593bc5313660f559.tar.bz2 |
[BranchFolder] Fix missing debug info with tail merging (#94715)
`BranchFolder::TryTailMergeBlocks(...)` removes unconditional branch
instructions and then recreates them. However, this process loses debug
source location information from the previous branch instruction, even
if tail merging doesn't change IR. This patch preserves the debug
information from the removed instruction and inserts them into the
recreated instruction.
Fixes #94050
Diffstat (limited to 'llvm/lib/Bitcode/Reader/MetadataLoader.cpp')
0 files changed, 0 insertions, 0 deletions