[PATCH] D74544: [MLIR] Add naive fusion of parallel loops.

Alexander Belyaev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 18 01:55:46 PST 2020


pifon2a added inline comments.


================
Comment at: mlir/lib/Dialect/LoopOps/Transforms/ParallelLoopFusion.cpp:70
+      return WalkResult::interrupt();
+    for (int i = 0, e = storeIndices.size(); i < e; ++i) {
+      if (map.lookupOrDefault(storeIndices[i]) != loadIndices[i])
----------------
herhut wrote:
> Does something like `llvm::all_of(llvm::zip(storeIndices, loadIndices), std::equal)` work? Just curious, no need to go there.
should work with a custom comparator


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D74544





More information about the llvm-commits mailing list