ValueMapper: Simplify remap() helper function, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 5 Aug 2015 23:22:34 +0000 (23:22 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 5 Aug 2015 23:22:34 +0000 (23:22 +0000)
commit23213bff2494778cf42aa5ff3624ce03783a43e0
tree0b5647d42fbfe72edbe7fc8a3fadf74529eb5602
parent7fac429c840df99106094000272c3d0cc04ed80a
ValueMapper: Simplify remap() helper function, NFC

Rename `remap()` to `remapOperands()`, and restrict its contract to
remapping operands.  Previously, it also called `mapToMetadata()`, but
this logic is hard to reason about externally.  In particular, this
refactors `mapUniquedNode()` to avoid redundant mapping calls, taking
advantage of the RAUWs that are already in place.

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