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

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Nov 20 23:10:03 PST 2023


Author: MaheshRavishankar
Date: 2023-11-20T23:09:59-08:00
New Revision: ec1086f2a0852e1ab3b00de306df0c3aa6fd7698

URL: https://github.com/llvm/llvm-project/commit/ec1086f2a0852e1ab3b00de306df0c3aa6fd7698
DIFF: https://github.com/llvm/llvm-project/commit/ec1086f2a0852e1ab3b00de306df0c3aa6fd7698.diff

LOG: Fix build error from #72178 (#72905)

Added: 
    

Modified: 
    mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp b/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
index 445cf367581c95c..8057b3898012d49 100644
--- a/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
+++ b/mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp
@@ -690,17 +690,15 @@ void mlir::scf::yieldReplacementForFusedProducer(
         rewriter.updateRootInPlace(tiledDestStyleOp, [&]() {
           tiledDestStyleOp.getDpsInitsMutable()[resultNumber].set(destSlice);
         });
-
-        Block *block = rewriter.getInsertionPoint()->getBlock();
-        rewriter.setInsertionPoint(block->getTerminator());
-        Value replacement = rewriter.create<tensor::InsertSliceOp>(
-            fusedProducerInfo.origProducer.getLoc(),
-            fusedProducerInfo.tiledAndFusedProducer,
-            loops.back().getRegionIterArgs().back(), sliceOp.getMixedOffsets(),
-            sliceOp.getMixedSizes(), sliceOp.getMixedStrides());
-        return {replacement};
       }
-      return SmallVector<Value>();
+      Block *block = rewriter.getInsertionPoint()->getBlock();
+      rewriter.setInsertionPoint(block->getTerminator());
+      Value replacement = rewriter.create<tensor::InsertSliceOp>(
+          fusedProducerInfo.origProducer.getLoc(),
+          fusedProducerInfo.tiledAndFusedProducer,
+          loops.back().getRegionIterArgs().back(), sliceOp.getMixedOffsets(),
+          sliceOp.getMixedSizes(), sliceOp.getMixedStrides());
+      return {replacement};
     };
 
     addInitOperandsToLoopNest(rewriter, loops,


        


More information about the Mlir-commits mailing list