ValueMapper: Resolve uniquing cycles more aggressively
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 7 Aug 2015 00:44:55 +0000 (00:44 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 7 Aug 2015 00:44:55 +0000 (00:44 +0000)
commitd2914e38f0faa26ad416a7ad255900fd393a6ccc
treedbfc1b502c6b7a6bb645fb7cfe5bce7b6331e0fe
parentdb5b592a6e0d84b39e576fb9a13ede3cf2f7ea53
ValueMapper: Resolve uniquing cycles more aggressively

As a follow-up to r244181, resolve uniquing cycles underneath distinct
nodes on the fly.  This prevents uniquing cycles in early operands from
affecting later operands.  It also removes an iteration through distinct
nodes' operands.

No real functional change here, just more prompt resolution of temporary
nodes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244302 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/ValueMapper.cpp