mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
41818ec794
Change uniquing from a `FoldingSet` to a `DenseSet` with custom `DenseMapInfo`. Unfortunately, this doesn't save any memory, since `DenseSet<T>` is a simple wrapper for `DenseMap<T, char>`, but I'll come back to fix that later. I used the name `GenericDenseMapInfo` to the custom `DenseMapInfo` since I'll be splitting `MDNode` into two classes soon: `MDNodeFwdDecl` for temporaries, and `GenericMDNode` for everything else. I also added a non-debug-info reduced version of a type-uniquing test that started failing on an earlier draft of this patch. Part of PR21532. llvm-svn: 222191
10 lines
226 B
LLVM
10 lines
226 B
LLVM
; RUN: llvm-link %s %S/Inputs/unique-fwd-decl-b.ll -S -o - | FileCheck %s
|
|
|
|
; Test that the arguments of !a and !b get uniqued.
|
|
; CHECK: !a = !{!0}
|
|
; CHECK: !b = !{!0}
|
|
|
|
!a = !{!0}
|
|
!0 = metadata !{metadata !1}
|
|
!1 = metadata !{}
|