aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/WasmObjectFile.cpp
diff options
context:
space:
mode:
authorWilliam Junda Huang <williamjhuang@google.com>2024-05-28 16:41:53 -0400
committerGitHub <noreply@github.com>2024-05-28 16:41:53 -0400
commit5a23d31c5033dcb41d374692ed26d87ed8e2665a (patch)
tree72dec63e6a9897defc84b7c3b2be1e9dbe9e1bea /llvm/lib/Object/WasmObjectFile.cpp
parent193e9007ef0bef6c881ab26746221f22ec674447 (diff)
downloadllvm-5a23d31c5033dcb41d374692ed26d87ed8e2665a.zip
llvm-5a23d31c5033dcb41d374692ed26d87ed8e2665a.tar.gz
llvm-5a23d31c5033dcb41d374692ed26d87ed8e2665a.tar.bz2
[Sample Profile] Check hot callsite threshold when inlining a function with a sample profile (#93286)
Currently if a callsite is hot as determined by the sample profile, it is unconditionally inlined barring invalid cases (such as recursion). Inline cost check should still apply because a function's hotness and its inline cost are two different things. For example if a function is calling another very large function multiple times (at different code paths), the large function should not be inlined even if its hot.
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions