Home | History | Annotate | Download | only in BugPoint
      1 ; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crash-too-many-cus -silence-passes > /dev/null
      2 ; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck %s
      3 ; RUN-DISABLE: bugpoint -disable-namedmd-remove -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crash-too-many-cus -silence-passes > /dev/null
      4 ; RUN-DISABLE: llvm-dis %t-reduced-simplified.bc -o - | FileCheck %s
      5 ; REQUIRES: loadable_module
      6 
      7 ; CHECK: !llvm.dbg.cu = !{![[FIRST:[0-9]+]], ![[SECOND:[0-9]+]]}
      8 ; CHECK-DISABLE:      !llvm.dbg.cu = !{![[FIRST:[0-9]+]], ![[SECOND:[0-9]+]],
      9 ; CHECK-DISABLE-SAME: ![[THIRD:[0-9]+]], ![[FOURTH:[0-9]+]], ![[FIFTH:[0-9]+]]}
     10 !llvm.dbg.cu = !{!0, !1, !2, !3, !4, !5}
     11 ; CHECK-NOT: !named
     12 ; CHECK-DISABLE: !named
     13 !named = !{!0, !1, !2, !3, !4, !5}
     14 ; CHECK: !llvm.module.flags = !{![[DIVERSION:[0-9]+]]}
     15 !llvm.module.flags = !{!6, !7}
     16 
     17 ; CHECK-DAG: ![[FIRST]] = distinct !DICompileUnit(language: DW_LANG_Julia,
     18 ; CHECK-DAG: ![[SECOND]] = distinct !DICompileUnit(language: DW_LANG_Julia,
     19 ; CHECK-DAG: ![[DIVERSION]] = !{i32 2, !"Debug Info Version", i32 3}
     20 ; CHECK-DAG: !DIFile(filename: "a", directory: "b")
     21 
     22 ; 4 nodes survive. Due to renumbering !4 should not exist
     23 ; CHECK-NOT: !4
     24 
     25 !0 = distinct !DICompileUnit(language: DW_LANG_Julia,
     26                              file: !8)
     27 !1 = distinct !DICompileUnit(language: DW_LANG_Julia,
     28                              file: !8)
     29 !2 = distinct !DICompileUnit(language: DW_LANG_Julia,
     30                              file: !8)
     31 !3 = distinct !DICompileUnit(language: DW_LANG_Julia,
     32                              file: !8)
     33 !4 = distinct !DICompileUnit(language: DW_LANG_Julia,
     34                              file: !8)
     35 !5 = distinct !DICompileUnit(language: DW_LANG_Julia,
     36                              file: !8)
     37 !6 = !{i32 2, !"Dwarf Version", i32 2}
     38 !7 = !{i32 2, !"Debug Info Version", i32 3}
     39 !8 = !DIFile(filename: "a", directory: "b")
     40