ValueMapper: Only put cyclic nodes into CyclicNodes, NFCI
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 16 Apr 2016 21:09:53 +0000 (21:09 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 16 Apr 2016 21:09:53 +0000 (21:09 +0000)
commit0cb5c344b4f5090373c5bad68821c3c562e8cd9a
tree12df834871f368c2857c413a9ae05097867f0fed
parentb75744ceae3cdebdd88fe6c2f12d508a611eec7c
ValueMapper: Only put cyclic nodes into CyclicNodes, NFCI

As a minor fixup to r266258, only track nodes that needed a placeholder
in CyclicNodes in MDNodeMapper::mapUniquedNodes.  There should be no
observable functionality change, just some local memory savings because
CyclicNodes only needs to grow to accommodate nodes that are actually
involved in cycles.  (This was the original intent of r266258, or else
the vector would have been called "ChangedNodes".)

llvm-svn: 266536
llvm/lib/Transforms/Utils/ValueMapper.cpp