[PATCH] D78209: [MLIR] Fix fusion of linalg.indexed_generic producer into tiled (Indexed)GenericOp.

Uday Bondhugula via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 15 09:16:57 PDT 2020


bondhugula requested changes to this revision.
bondhugula added inline comments.
This revision now requires changes to proceed.


================
Comment at: mlir/lib/Dialect/Linalg/Transforms/Fusion.cpp:107
+  if (auto indexedGenericOp = dyn_cast<IndexedGenericOp>(clonedOp)) {
+    auto &block = indexedGenericOp.region().getBlocks().front();
+
----------------
You don't need `region().getBlocks().front()`, `region().front()` will work. 


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D78209





More information about the llvm-commits mailing list