[PATCH] D132077: [llvm-reduce] Add pass that reduces DebugInfo metadata

Ellis Hoag via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 6 14:18:39 PDT 2022


ellis added inline comments.


================
Comment at: llvm/tools/llvm-reduce/deltas/ReduceDIMetadata.cpp:83
+  MDNodeList MDs;
+  // Collect all !dbg metadata attachments.
+  for (const auto &DC : Program.debug_compile_units())
----------------
In D135237 I searched through `Program.named_metadata()` which includes things like `!llvm.module.flags` and `!llvm.dbg.cu` (I assume this is the same as `Program.debug_compile_units()`). Do we also want to reduce these? My guess is this patch won't remove unnecessary module flags. Is that the case?


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

https://reviews.llvm.org/D132077



More information about the llvm-commits mailing list