[llvm-reduce] Attempt to strip debug info
authorArthur Eubanks <aeubanks@google.com>
Tue, 18 Oct 2022 22:42:14 +0000 (15:42 -0700)
committerArthur Eubanks <aeubanks@google.com>
Fri, 21 Oct 2022 16:11:58 +0000 (09:11 -0700)
commit0fbb261536a479c38a7bc26528b3f6984bfd4d84
treee88c6a446ac49ae52cd32684c75f693aab139b14
parent020450211ba85337962c5d9445f359bcdb9b5e20
[llvm-reduce] Attempt to strip debug info

I often run llvm-reduce on IR that contains debug info, this prevents an
extra step of `opt -passes=strip` I do every time and will result in a
lot less invalid reductions around debug metadata.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D136208
llvm/test/tools/llvm-reduce/strip-debug-info.ll [new file with mode: 0644]
llvm/tools/llvm-reduce/CMakeLists.txt
llvm/tools/llvm-reduce/DeltaManager.cpp
llvm/tools/llvm-reduce/deltas/StripDebugInfo.cpp [new file with mode: 0644]
llvm/tools/llvm-reduce/deltas/StripDebugInfo.h [new file with mode: 0644]
llvm/utils/gn/secondary/llvm/tools/llvm-reduce/BUILD.gn