[flang-commits] [clang] [flang] [llvm] [CodeGen] Add a FunctionSplittingMode target option (PR #226575)
via flang-commits
flang-commits at lists.llvm.org
Wed Oct 7 00:16:23 PDT 2026
================
@@ -50,6 +50,19 @@ enum class BasicBlockSection {
None // Do not use Basic Block Sections.
};
+/// Late function splitting mode. Decides which functions are eligible to have
+/// their cold blocks moved into a separate section.
+enum class FunctionSplittingMode {
+ None, // Hard off. Never create a cold section, even for functions
----------------
MattPD wrote:
If this lands before https://github.com/llvm/llvm-project/pull/227880, could we qualify this code comment and the `none` help text? An entry-only basic-block-sections profile still produces a cold section with `-function-splitting=none`.
https://github.com/llvm/llvm-project/pull/226575
More information about the flang-commits
mailing list