[PATCH] D85628: [HotColdSplitting] Add command line options for supplying cold function names via user input.
Aditya Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 12 16:24:08 PDT 2020
hiraditya added a comment.
> I don't think we need to mark the object constructor as cold. We want to mark inlined slow paths of local static variables (the call to __cxa_guard_acquire, the call to the object constructor, etc.,) as cold.
If there was a way to provide handwritten profile/coverage file, maybe that would work in absence of profile information?
> As one possibility the consequences of which I have certainly not thought through, but which maybe already exists to some degree, we can depend on a bit of inference
>
> - if __cxa_guard_acquire is marked as cold, then all code which is accessible only by passing the call to __cxa_guard_acquire is also cold.
This is taken care by dominance relation. HCS uses that to infer coldness/hotness.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85628/new/
https://reviews.llvm.org/D85628
More information about the llvm-commits
mailing list