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

chuanqi.xcq via cfe-dev cfe-dev at lists.llvm.org
Thu May 6 02:16:58 PDT 2021


Hi,

IIRC, clang/llvm has HotColdSplit and partial inline passes which has similar functionality. However, these two passes are not enabled by default for some reasons.

Thanks,
Chuanqi


------------------------------------------------------------------
From:陈云星 via cfe-dev <cfe-dev at lists.llvm.org>
Send Time:2021年5月6日(星期四) 17:11
To:cfe-dev <cfe-dev at lists.llvm.org>
Subject:[cfe-dev] split hot and cold part of a function into separate function

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

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/3e2215d8/attachment.html>


More information about the cfe-dev mailing list