distinct-mdnode.ll 757 B

12345678910111213141516171819202122232425262728
  1. ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
  2. ; RUN: verify-uselistorder %s
  3. !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9, !10}
  4. !0 = !{}
  5. !1 = !{} ; This should merge with !0.
  6. !2 = !{!0}
  7. !3 = !{!0} ; This should merge with !2.
  8. !4 = distinct !{}
  9. !5 = distinct !{}
  10. !6 = distinct !{!0}
  11. !7 = distinct !{!0}
  12. !8 = distinct !{!8}
  13. !9 = distinct !{!9}
  14. !10 = !{!10} ; This should become distinct.
  15. ; CHECK: !named = !{!0, !0, !1, !1, !2, !3, !4, !5, !6, !7, !8}
  16. ; CHECK: !0 = !{}
  17. ; CHECK-NEXT: !1 = !{!0}
  18. ; CHECK-NEXT: !2 = distinct !{}
  19. ; CHECK-NEXT: !3 = distinct !{}
  20. ; CHECK-NEXT: !4 = distinct !{!0}
  21. ; CHECK-NEXT: !5 = distinct !{!0}
  22. ; CHECK-NEXT: !6 = distinct !{!6}
  23. ; CHECK-NEXT: !7 = distinct !{!7}
  24. ; CHECK-NEXT: !8 = distinct !{!8}
  25. ; CHECK-NOT: !