[llvm] Adding Matching and Inference Functionality to Propeller-PR4: Implement matching and inference and create clusters (PR #167622)

Rahman Lavaee via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 23 23:15:09 PST 2025


================
@@ -175,6 +177,79 @@ updateBranches(MachineFunction &MF,
   }
 }
 
+// This function generates the machine basic block clusters of "hot" blocks.
+// Currently, only support one cluster creation.
+// TODO: Support multi-cluster creation and path cloning.
+static SmallVector<BBClusterInfo>
+createBBClusterInfoForFunction(MachineFunction &MF,
+                               BasicBlockMatchingAndInference *BMI) {
+  unsigned CurrentCluster = 0;
----------------
rlavaee wrote:

This is always zero. Does not need to be defined.

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


More information about the llvm-commits mailing list