[llvm] [SandboxVec][DAG] Build actual dependencies (PR #111094)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 8 11:19:11 PDT 2024


================
@@ -50,29 +51,137 @@ MemDGNodeIntervalBuilder::make(const Interval<Instruction> &Instrs,
                              cast<MemDGNode>(DAG.getNode(MemBotI)));
 }
 
+DependencyGraph::DependencyType
+DependencyGraph::getRoughDepType(Instruction *FromI, Instruction *ToI) {
+  // TODO: Perhaps compile-time improvement by skipping if neither is mem?
+  if (FromI->mayWriteToMemory()) {
+    if (ToI->mayReadFromMemory())
+      return DependencyType::RAW;
----------------
aeubanks wrote:

is RAW more conservative than WAW?

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


More information about the llvm-commits mailing list