summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/ValueMapper.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-19 22:24:52 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-19 22:24:52 +0000
commite33530909ddf2b72dc4a93f610803f9c129eece1 (patch)
treebd930e72a8f1778b31aa251868c478864b91aad8 /llvm/lib/Transforms/Utils/ValueMapper.cpp
parent434d4a5a0681bc511eaa899df7b3e9c49358db55 (diff)
downloadbcm5719-llvm-e33530909ddf2b72dc4a93f610803f9c129eece1.tar.gz
bcm5719-llvm-e33530909ddf2b72dc4a93f610803f9c129eece1.zip
IR: Allow temporary nodes to become uniqued or distinct
Add `MDNode::replaceWithUniqued()` and `MDNode::replaceWithDistinct()`, which mutate temporary nodes to become uniqued or distinct. On uniquing collisions, the unique version is returned and the node is deleted. This takes advantage of temporary nodes being folded back in, and should let me clean up some awkward logic in `MapMetadata()`. llvm-svn: 226510
Diffstat (limited to 'llvm/lib/Transforms/Utils/ValueMapper.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud