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