[Mlir-commits] [mlir] Fix build error from #72178 (PR #72905)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Nov 20 11:25:45 PST 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: None (MaheshRavishankar)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/72905.diff


1 Files Affected:

- (modified) mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp (+2) 


``````````diff
diff --git a/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp b/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
index b91af4d246d9919..902243626c45216 100644
--- a/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
+++ b/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
@@ -700,6 +700,8 @@ void mlir::scf::yieldReplacementForFusedProducer(
             sliceOp.getMixedSizes(), sliceOp.getMixedStrides());
         return {replacement};
       }
+      // By default just return the block argument
+      return loops.back().getRegionIterArgs().back();
     };
 
     addInitOperandsToLoopNest(rewriter, loops,

``````````

</details>


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


More information about the Mlir-commits mailing list