[PATCH] D142556: [DebugInfo] Merge partially matching chains of inlined locations

David Stenberg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 27 05:58:27 PST 2023


dstenb updated this revision to Diff 492719.
dstenb added a comment.

When building a Clang binary with this patch to see how often the new case occurs I encountered a bug where the `BRIt` iterator was invalidated due to further insertion into `BLocs`. I have fixed that and adding a unit test.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142556/new/

https://reviews.llvm.org/D142556

Files:
  llvm/lib/IR/DebugInfoMetadata.cpp
  llvm/test/DebugInfo/MIR/X86/merge-inline-loc1.mir
  llvm/test/DebugInfo/MIR/X86/merge-inline-loc2.mir
  llvm/test/DebugInfo/MIR/X86/merge-inline-loc3.mir
  llvm/test/DebugInfo/MIR/X86/merge-inline-loc4.mir
  llvm/test/DebugInfo/X86/merge_inlined_loc.ll
  llvm/unittests/IR/MetadataTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142556.492719.patch
Type: text/x-patch
Size: 61403 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230127/b87f50a3/attachment.bin>


More information about the llvm-commits mailing list