[all-commits] [llvm/llvm-project] 69549d: [llvm-reduce] Remove debug metadata elements

Ellis Hoag via All-commits all-commits at lists.llvm.org
Thu Oct 6 09:29:12 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 69549de865550e54983ed8d00009920184de47ff
      https://github.com/llvm/llvm-project/commit/69549de865550e54983ed8d00009920184de47ff
  Author: Ellis Hoag <ellis.sparky.hoag at gmail.com>
  Date:   2022-10-06 (Thu, 06 Oct 2022)

  Changed paths:
    R llvm/test/tools/llvm-reduce/Inputs/remove-metadata.py
    M llvm/test/tools/llvm-reduce/remove-debug-info-nodes.ll
    A llvm/test/tools/llvm-reduce/remove-metadata-elements.ll
    M llvm/test/tools/llvm-reduce/remove-metadata.ll
    A llvm/test/tools/llvm-reduce/remove-named-metadata-elements.ll
    M llvm/tools/llvm-reduce/deltas/ReduceMetadata.cpp

  Log Message:
  -----------
  [llvm-reduce] Remove debug metadata elements

There can be lots of `MDTuple` debug metadata nodes. For example, `globals: !{!1, !2}` in `!DICompileUnit()`. Search through all debug info to find `MDTuple`'s and remove some of their elements.

For D135114 I was able to get a reproducer with 364 lines without manually deleting elements. After this patch I got it down to 67 lines.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D135237




More information about the All-commits mailing list