aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorSnehasish Kumar <snehasishk@google.com>2020-09-16 21:40:00 -0700
committerSnehasish Kumar <snehasishk@google.com>2020-09-24 15:26:15 -0700
commitd2696dec45cdcff791cd53b8b8288d33a0d8dddb (patch)
tree94c963c1c0b114cf06018a9396f32fef7466a729 /clang/lib/CodeGen/CodeGenFunction.cpp
parenta22814194e8ea8d581a26992bb27f808e53bbbde (diff)
downloadllvm-d2696dec45cdcff791cd53b8b8288d33a0d8dddb.zip
llvm-d2696dec45cdcff791cd53b8b8288d33a0d8dddb.tar.gz
llvm-d2696dec45cdcff791cd53b8b8288d33a0d8dddb.tar.bz2
[llvm] Add -bbsections-cold-text-prefix to emit cold clusters to a different section.
This change adds an option to basic block sections to allow cold clusters to be assigned a custom text prefix. With a custom prefix such as ".text.split." (D87840), lld can place them in a separate output section. The benefits are - * Empirically shown to improve icache and itlb metrics by 3-5% (absolute) compared to placing split parts in .text.unlikely. * Mitigates against poor profiles, eg samplePGO profiles used with the machine function splitter. Optimizations such as hugepage remapping can make different decisions at the section granularity. * Enables section granularity hotness monitoring (checking on the decisions made during compilation vs sample data from production). Differential Revision: https://reviews.llvm.org/D87813
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions