llvm-project
2a7e7e2a - [MemProf] Convert removal of memprof attrs and metadata to a pass (#163841)

Commit
20 days ago
[MemProf] Convert removal of memprof attrs and metadata to a pass (#163841) In preparation for a follow on fix that removes these attributes and metadata in non-LTO pipelines, convert updateMemProfAttributes to a new MemProfRemoveInfo pass that executes at the start of the LTO backend pass pipelines when we don't have an index indicating that we linked with a library support hot cold operator new. This is largely NFC from an end user perspective but changes where the removal can be observed, hence the test updates. A follow on change will use the new pass for non-LTO pipelines (for cases when the bitcode is initially matched with memprof data but we decide to complete the compile without LTO).
Author
Parents
Loading