[PATCH] D150295: [MemProf] Update hot/cold information after importing

Teresa Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 10 13:18:33 PDT 2023


tejohnson created this revision.
tejohnson added a reviewer: davidxl.
Herald added subscribers: ormris, steven_wu, hiraditya.
Herald added a project: All.
tejohnson requested review of this revision.
Herald added projects: clang, LLVM.
Herald added a subscriber: cfe-commits.

The support added by D149215 <https://reviews.llvm.org/D149215> to remove memprof metadata and attributes
if we don't link with an allocator supporting hot/cold operator new
interfaces did not update imported code. Move the update handling later
in the ThinLTO backend to just after importing, and update the test to
check this case.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D150295

Files:
  clang/test/CodeGen/thinlto-distributed-supports-hot-cold-new.ll
  llvm/lib/LTO/LTOBackend.cpp
  llvm/test/ThinLTO/X86/memprof-supports-hot-cold-new.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150295.521085.patch
Type: text/x-patch
Size: 5585 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230510/c3aa1408/attachment.bin>


More information about the llvm-commits mailing list