[PATCH] D99546: [llvm][ValueMap] Share the value map between MappingContext

Steven Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 29 15:35:24 PDT 2021


steven_wu created this revision.
steven_wu added reviewers: pcc, tejohnson, dexonsmith.
Herald added subscribers: ributzka, hiraditya.
steven_wu requested review of this revision.
Herald added a project: LLVM.

Share the ValueMap for different mapping context to avoid scheduling the
same value twice.

This doesn't work for comdat yet.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99546

Files:
  llvm/include/llvm/Transforms/Utils/ValueMapper.h
  llvm/lib/Linker/IRMover.cpp
  llvm/lib/Transforms/Utils/ValueMapper.cpp
  llvm/test/Linker/global-alias-value-map.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99546.334000.patch
Type: text/x-patch
Size: 8097 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210329/9f1c58ec/attachment-0001.bin>


More information about the llvm-commits mailing list