[bugpoint] Reduce metadata that does not contribute to crash.
authorFlorian Hahn <flo@fhahn.com>
Wed, 30 Oct 2019 14:30:42 +0000 (14:30 +0000)
committerFlorian Hahn <flo@fhahn.com>
Wed, 30 Oct 2019 15:11:56 +0000 (15:11 +0000)
commit29e8b8ce6697414759f9314255d0165edbb3e454
tree555ef9136672d52db7c4d5b2c19d5ce23fd3cb0b
parent0405b486465dbb0b69e1ed159437c8a756dec254
[bugpoint] Reduce metadata that does not contribute to crash.

Add a new reducer that drops metadata that does not contribute to the
crash from instructions.

It adjusts the metadata.ll test case, as now also the instruction level
metadata will get dropped.

Reviewers: davide, reames, modocache

Reviewed By: reames

Differential Revision: https://reviews.llvm.org/D69234
llvm/test/BugPoint/metadata.ll
llvm/test/BugPoint/retain-crashing-metadata.ll [new file with mode: 0644]
llvm/tools/bugpoint-passes/TestPasses.cpp
llvm/tools/bugpoint/CrashDebugger.cpp