This is an archive of the discontinued LLVM Phabricator instance.

llvm-reduce: Reduce individual operands of named metadata
ClosedPublic

Authored by arsenm on Jan 3 2023, 5:51 AM.

Details

Summary

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.

Diff Detail

Unit TestsFailed

Event Timeline

arsenm created this revision.Jan 3 2023, 5:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 3 2023, 5:51 AM
arsenm requested review of this revision.Jan 3 2023, 5:51 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added subscribers: sstefan1, wdng. · View Herald Transcript
dexonsmith accepted this revision.Jan 3 2023, 7:32 AM

LGTM with one bit inline.

llvm/tools/llvm-reduce/deltas/ReduceMetadata.cpp
57

Seems like it’d be nice to precede this with a check that anything has changed (if nothing has changed, continue…)

This revision is now accepted and ready to land.Jan 3 2023, 7:32 AM