llvm-reduce: Reduce individual operands of named metadata
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sun, 1 Jan 2023 15:52:02 +0000 (10:52 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 3 Jan 2023 16:48:00 +0000 (11:48 -0500)
commit5f6bf752d9a7efaf6533d6ad375ab0231eef8012
tree4d0b01133dae353010766ae0a0d0c021164335b8
parenta7425e299e9ff8cee9290cb6ffeb5fd056e77b87
llvm-reduce: Reduce individual operands of named metadata

The current reduction tries all or nothing elimination of named
metadata. I noticed in one case where one of the module flags was
necessary, but it left the rest. Reduce the individual operands of
named metadata nodes that are known to behave like lists. Be
conservative since some named metadata may have more specific verifier
requirements for the operands.
llvm/test/tools/llvm-reduce/reduce-module-flags.ll [new file with mode: 0644]
llvm/test/tools/llvm-reduce/reduce-named-metadata.ll [new file with mode: 0644]
llvm/tools/llvm-reduce/DeltaManager.cpp
llvm/tools/llvm-reduce/deltas/ReduceMetadata.cpp
llvm/tools/llvm-reduce/deltas/ReduceMetadata.h