[PATCH] D135237: [llvm-reduce] Remove debug metadata elements
Ellis Hoag via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 4 21:40:42 PDT 2022
ellis created this revision.
Herald added a project: All.
ellis added reviewers: dblaikie, Meinersbur, aeubanks.
ellis published this revision for review.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
There can be lots of `MDTuple` debug metadata nodes. For example, `globals: !{!1, !2}` in `!DICompileUnit()`. Try to remove elements of these tuples.
For D135114 <https://reviews.llvm.org/D135114> I was able to get a reproducer with 364 lines without manually deleting elements. After this patch I got it down to 67 lines.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D135237
Files:
llvm/test/tools/llvm-reduce/Inputs/remove-metadata.py
llvm/test/tools/llvm-reduce/remove-debug-info-nodes.ll
llvm/test/tools/llvm-reduce/remove-metadata-elements.ll
llvm/test/tools/llvm-reduce/remove-metadata.ll
llvm/test/tools/llvm-reduce/remove-named-metadata-elements.ll
llvm/tools/llvm-reduce/deltas/ReduceMetadata.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135237.465274.patch
Type: text/x-patch
Size: 9645 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221005/4920c541/attachment.bin>
More information about the llvm-commits
mailing list