brintos

brintos / llvm-project-archived public Read only

0
0
Text · 791 B · 3ff2d8b Raw
24 lines · plain
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 -abort-on-invalid-reduction --aggressive-named-md-reduction --test %python --test-arg %p/Inputs/remove-metadata.py %s -o %t5; RUN: FileCheck --check-prefixes=AGGRESSIVE --implicit-check-not=! %s < %t6 7; RUN: llvm-reduce -abort-on-invalid-reduction --test %python --test-arg %p/Inputs/remove-metadata.py %s -o %t8; RUN: FileCheck --implicit-check-not=! %s < %t9 10@global = global i32 0, !dbg !011 12define void @main() !dbg !0 {13   ret void, !dbg !014}15 16!uninteresting = !{!0}17; AGGRESSIVE: !interesting = !{}18; CHECK: !interesting = !{!0}19!interesting = !{!1}20 21!0 = !{!"uninteresting"}22; CHECK: !0 = !{!"interesting"}23!1 = !{!"interesting"}24