[bugpoint] Add a named metadata (+their operands) reducer
authorKeno Fischer <kfischer@college.harvard.edu>
Fri, 6 Nov 2015 00:12:50 +0000 (00:12 +0000)
committerKeno Fischer <kfischer@college.harvard.edu>
Fri, 6 Nov 2015 00:12:50 +0000 (00:12 +0000)
commit11e0c3127ee6fa56d92191e8475ab27dc4f3a1b8
tree27d7f9e8a6c55508a8d4675b5e4c57a84931354d
parent6e83ede607f1727d77fce8c08ff2eefb2794aa15
[bugpoint] Add a named metadata (+their operands) reducer

Summary:
We frequently run bugpoint on a linked module that consists of all
modules we create while jitting the julia standard library. This module
has a very large number of compile units (10000+) in `llvm.dbg.cu`,
which didn't get reduced at all, requiring manual post processing.
This is an attempt to have bugpoint go through and attempt to reduce
the number of global named metadata nodes as well as their operands,
to cut down the number of roots for such metadata.

Reviewers: dexonsmith, reames, pete

Subscribers: pete, dexonsmith, reames, llvm-commits

Differential Revision: http://reviews.llvm.org/D14043

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252247 91177308-0d34-0410-b5e6-96231b3b80d8
test/BugPoint/named-md.ll [new file with mode: 0644]
tools/bugpoint-passes/TestPasses.cpp
tools/bugpoint/CrashDebugger.cpp