aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/BasicBlockSections.cpp
diff options
context:
space:
mode:
authorSnehasish Kumar <snehasishk@google.com>2020-10-07 11:42:02 -0700
committerSnehasish Kumar <snehasishk@google.com>2020-10-14 12:16:36 -0700
commit77638a5343d5b4c1a87ec2b7fb3671ccb108a059 (patch)
tree4509f8a1292d7afd1154fe25a187ff303ab61498 /llvm/lib/CodeGen/BasicBlockSections.cpp
parentadfb5415010fbbc009a4a6298cfda7a6ed4fa6d4 (diff)
downloadllvm-77638a5343d5b4c1a87ec2b7fb3671ccb108a059.zip
llvm-77638a5343d5b4c1a87ec2b7fb3671ccb108a059.tar.gz
llvm-77638a5343d5b4c1a87ec2b7fb3671ccb108a059.tar.bz2
[llvm] Set the default for -bbsections-cold-text-prefix to .text.split.
After using this for a while, we find that it is generally useful to have it set to .text.split. by default, removing the need for an additional -mllvm option. Differential Revision: https://reviews.llvm.org/D88997
Diffstat (limited to 'llvm/lib/CodeGen/BasicBlockSections.cpp')
-rw-r--r--llvm/lib/CodeGen/BasicBlockSections.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/BasicBlockSections.cpp b/llvm/lib/CodeGen/BasicBlockSections.cpp
index 5c47481..7499ea8 100644
--- a/llvm/lib/CodeGen/BasicBlockSections.cpp
+++ b/llvm/lib/CodeGen/BasicBlockSections.cpp
@@ -81,12 +81,12 @@ using namespace llvm;
// Placing the cold clusters in a separate section mitigates against poor
// profiles and allows optimizations such as hugepage mapping to be applied at a
-// section granularity. Where necessary, users should set this to ".text.split."
-// which is recognized by lld via the `-z keep-text-section-prefix` flag.
+// section granularity. Defaults to ".text.split." which is recognized by lld
+// via the `-z keep-text-section-prefix` flag.
cl::opt<std::string> llvm::BBSectionsColdTextPrefix(
"bbsections-cold-text-prefix",
cl::desc("The text prefix to use for cold basic block clusters"),
- cl::init(".text.unlikely."), cl::Hidden);
+ cl::init(".text.split."), cl::Hidden);
namespace {