[cfe-dev] split hot and cold part of a function into separate function

陈云星 via cfe-dev cfe-dev at lists.llvm.org
Thu May 6 02:11:31 PDT 2021


currently, gcc support function attribute “cold”, which can hint compiler split caller function’s cold into two separate function, one is hot the other is cold.

One example is here: https://godbolt.org/z/j7sK4hd48 <https://godbolt.org/z/j7sK4hd48>

my question is Clang/llvm has such function/capability ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210506/f26f24f6/attachment.html>


More information about the cfe-dev mailing list