Utils: Resolve cycles under distinct MDNodes
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 4 Feb 2015 19:44:34 +0000 (19:44 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 4 Feb 2015 19:44:34 +0000 (19:44 +0000)
commita7a6be22eb67d655e28811ba968903a98de248cf
tree252f8b5626b19f2cb397475d160884b91d8b6c66
parenta602c106862be2af0241b20ff5d3449b59264ed0
Utils: Resolve cycles under distinct MDNodes

Track unresolved nodes under distinct `MDNode`s during `MapMetadata()`,
and resolve them at the end.  Previously, these cycles wouldn't get
resolved.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228180 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/ValueMapper.cpp
test/Linker/distinct-cycles.ll [new file with mode: 0644]