[PATCH] D132077: [llvm-reduce] Add pass that reduces DebugInfo metadata
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 30 15:09:44 PDT 2022
aeubanks added a comment.
even with the latest patch I'm seeing verifier errors
!6249 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "BindUnwrapTraits<base::internal::UnretainedWrapper<v8::JobTask> >", scope: !22, file: !1379, line: 1456, size: 8, flags: DIFlagTypePassByValue, elements: !7, templateParams: !2223, identifier: ".?AU?$BindUnwrapTraits at V?$UnretainedWrapper at VJobTask@v8@@@internal at base@@@base@@")
!2223 = distinct !{null}
invalid template parameter
is it possible to not replace the metadata with null but rather create a new metadata node with just the remaining operands?
here's what I've been testing with
F24761420: b.ll <https://reviews.llvm.org/F24761420>
$ cat /tmp/reduce.sh
#!/bin/bash
set -eu
[[ $(rg --count DILocation $@ ) -gt 2000 ]]
$ ./build/rel/bin/llvm-reduce --test /tmp/reduce.sh /tmp/b.ll -o /tmp/c.ll --delta-passes=di-metadata
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132077/new/
https://reviews.llvm.org/D132077
More information about the llvm-commits
mailing list