1 ; Test that llvm-reduce can remove uninteresting metadata from an IR file.
2 ; The Metadata pass erases named & unnamed metadata nodes.
5 ; RUN: llvm-reduce --test %python --test-arg %p/Inputs/remove-metadata.py %s -o %t
6 ; RUN: cat %t | FileCheck -implicit-check-not=! %s
8 @global = global i32 0, !dbg !0
10 define void @main() !dbg !0 {
14 !uninteresting = !{!0}
15 ; CHECK: !interesting = !{!0}
18 !0 = !{!"uninteresting"}
19 ; CHECK: !0 = !{!"interesting"}
20 !1 = !{!"interesting"}