[llvm] MachineScheduler: Improve instruction clustering (PR #137784)

via llvm-commits llvm-commits at lists.llvm.org
Mon May 12 06:36:38 PDT 2025


================
@@ -2093,6 +2090,21 @@ void BaseMemOpClusterMutation::clusterNeighboringMemOps(
                       << ", Curr cluster bytes: " << CurrentClusterBytes
                       << "\n");
   }
+
+  // Add cluster group information.
+  // Iterate over all of the equivalence sets.
+  auto &AllClusters = DAG->getClusters();
+  for (auto &I : Clusters) {
----------------
ruiling wrote:

It seems like the actual type is `EquivalenceClasses<SUnit *>::ECValue *`.But the type is a private class type and cannot be used outside of its parent. Maybe we need to change the ECValue to be **public**?

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


More information about the llvm-commits mailing list