commit | 23213bff2494778cf42aa5ff3624ce03783a43e0 | [log] [tgz] |
---|---|---|
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | Wed Aug 05 23:22:34 2015 +0000 |
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | Wed Aug 05 23:22:34 2015 +0000 |
tree | 0b5647d42fbfe72edbe7fc8a3fadf74529eb5602 | |
parent | 7fac429c840df99106094000272c3d0cc04ed80a [diff] |
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