[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:49:08 PDT 2021


are there some example ?
And this option -hot-cold-split need profile data ?

> 2021年5月6日 下午5:16,chuanqi.xcq <yedeng.yd at linux.alibaba.com> 写道:
> 
> 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 <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/0d3c7df0/attachment.html>


More information about the cfe-dev mailing list