[PATCH] D65026: [Bugpoint redesign] Added pass to reduce Metadata

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 14 13:15:33 PDT 2019


dblaikie added inline comments.


================
Comment at: llvm/test/Reduce/remove-metadata.ll:1
+; Test that llvm-reduce can remove uninteresting metadata from an IR file.
+; The Metadata pass erases named & unnamed metadata nodes, as well as debug functions.
----------------
Would it be possible to test this without specifically debug info metadata?  If the feature is general over all metadata it might be clearer to demonstrate with less IR (fewer metadata nodes, if they don't have to form a complete debug info metadata graph, etc).


================
Comment at: llvm/tools/llvm-reduce/deltas/ReduceMetadata.cpp:10-11
+// This file implements two functions used by the Generic Delta Debugging
+// Algorithm, which are used to reduce Metadata tags, as well as debug
+// functions.
+//
----------------
Any reason debug functions would need to be a special case here, rather than handled as a consequence of a general pass that removes any functions?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D65026





More information about the llvm-commits mailing list