[PATCH] D34796: upporting -f(no)-reorder-functions flag, clang side change

Taewook Oh via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 19 08:48:56 PDT 2018


twoh added a comment.

@joerg Sorry but I'm not sure if I understand your question. This doesn't pretend to honor source code order, but makes linker to place "hot" functions under .text.hot section (There's no guarantee of ordering between functions inside .hot.text section) while "cold" functions under .text.unlikely section. This is purely for performance.


Repository:
  rC Clang

https://reviews.llvm.org/D34796





More information about the cfe-commits mailing list