[all-commits] [llvm/llvm-project] e5cbe8: [MemProf] Optionally match profiles on to manually...
Teresa Johnson via All-commits
all-commits at lists.llvm.org
Fri May 3 16:18:25 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e5cbe8fd9c12483260e50edb24c00e50a78a3e12
https://github.com/llvm/llvm-project/commit/e5cbe8fd9c12483260e50edb24c00e50a78a3e12
Author: Teresa Johnson <tejohnson at google.com>
Date: 2024-05-03 (Fri, 03 May 2024)
Changed paths:
M llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
A llvm/test/Transforms/PGOProfile/memprof_match_hot_cold_new_calls.ll
Log Message:
-----------
[MemProf] Optionally match profiles on to manually hinted hot/cold new (#91027)
While we don't currently rewrite the hints on manually hot/cold hinted
allocations, enable optionally matching profiles onto those allocations
as a first step to being able to do this.
By explicitly checking whether the library function is in the list of
operator new also fixes one limitation of the prior call to isNewLikeFn.
Some operator new calls (those that specify nothrow) are considered
Malloc-like because they may return null. We want to be able to match
and rewrite these. Therefore the new test uses a nothrow variant to test
the fix for this as well.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list