[llvm] [CodeGen] Honor -function-splitting=none in BasicBlockSections (PR #227880)

via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 11 00:22:22 PDT 2026


================
@@ -454,7 +461,8 @@ bool BasicBlockSections::handleBBSections(MachineFunction &MF) {
       if (XInCluster != YInCluster)
         return XInCluster;
       if (XInCluster)
-        return XI->second.PositionInCluster < YI->second.PositionInCluster;
+        return std::tie(XI->second.ClusterID, XI->second.PositionInCluster) <
----------------
MattPD wrote:

Confirmed. Your example also emits incorrect CFI on the parent commit, so I agree that the fix belongs in `CFIFixup`. Thanks for following up.

https://github.com/llvm/llvm-project/pull/227880


More information about the llvm-commits mailing list