[llvm] [CodeGen] Place unsplittable blocks after the profiled blocks in BB sections (PR #228173)
Rahman Lavaee via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 1 16:49:50 PDT 2026
================
@@ -286,6 +297,10 @@ assignSections(MachineFunction &MF,
// BB goes into the special cold section if it is not specified in the
// cluster info map.
MBB.setSectionID(MBBSectionID::ColdSectionID);
+ } else if (BBSectionsSinkUnsplittableBlocksToEnd) {
+ // Otherwise, it stays in the default section, after all the profiled
+ // basic blocks of that section.
+ MBB.setSectionID(MBBSectionID(0));
----------------
rlavaee wrote:
Thanks. Removed and added comment to explain.
https://github.com/llvm/llvm-project/pull/228173
More information about the llvm-commits
mailing list