[llvm] [SandboxVec][DAG] Implement UnscheduledSuccs (PR #112255)

Sriraman Tallam via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 14 14:24:40 PDT 2024


================
@@ -215,6 +211,51 @@ void DependencyGraph::scanAndAddDeps(MemDGNode &DstN,
   }
 }
 
+void DependencyGraph::setDefUseUnscheduledSuccs(
+    const Interval<Instruction> &NewInterval) {
+  // Set the intra-interval counters in NewInterval.
+  for (Instruction &I : NewInterval) {
+    for (Value *Op : I.operands()) {
+      auto *OpI = dyn_cast<Instruction>(Op);
+      if (OpI == nullptr)
+        continue;
+      // TODO: Check if OpI is in NewInterval to save compile time?
----------------
tmsri wrote:

This TODO seems important and as the code below is inefficient otherwise?

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


More information about the llvm-commits mailing list