[PATCH] D79850: [mlir] Extended BufferPlacement to support more sophisticated scenarios in which allocations cannot be moved freely and can remain in divergent control flow.

Marcel Koester via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 9 03:15:44 PDT 2020


dfki-mako marked 2 inline comments as done.
dfki-mako added inline comments.


================
Comment at: mlir/lib/Transforms/BufferPlacement.cpp:305
+    // Detect possibly unsafe aliases starting from all allocations.
+    for (auto &entry : allocs)
+      findUnsafeValues(entry.allocValue, entry.placementBlock);
----------------
herhut wrote:
> You could also populate `toProcess` here and then just have the loop below. This works for me too, though.
This would also work. However, we would prefer the more explicit version to help others understand the code more easily.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79850/new/

https://reviews.llvm.org/D79850





More information about the llvm-commits mailing list