[HotColdSplit] Add options for splitting cold functions in separate section
authorAditya Kumar <aditya7@fb.com>
Sun, 9 Aug 2020 15:45:36 +0000 (08:45 -0700)
committerAditya Kumar <aditya7@fb.com>
Sun, 9 Aug 2020 15:48:12 +0000 (08:48 -0700)
commit53ac14484869a62e0c8eb569c6a030e7af1312e8
treec1dbab52e3cc584ffb46c77d68882163054a1c9f
parentdee938e5ccdb5b3afe4e5b6e91b41db9c7fe61bd
[HotColdSplit] Add options for splitting cold functions in separate section

Add support for (if enabled) splitting cold functions into a separate section
in order to further boost locality of hot code.

Authored by: rjf (Ruijie Fang)
Reviewed by: hiraditya,rcorcs,vsk

Differential Revision: https://reviews.llvm.org/D85331
llvm/lib/Transforms/IPO/HotColdSplitting.cpp
llvm/test/Transforms/HotColdSplit/section-splitting-custom.ll [new file with mode: 0644]
llvm/test/Transforms/HotColdSplit/section-splitting-default.ll [new file with mode: 0644]