diff --git a/compiler/plugins/target/AMD-AIE/iree-amd-aie/Transforms/AMDAIELowerToAIE.cpp b/compiler/plugins/target/AMD-AIE/iree-amd-aie/Transforms/AMDAIELowerToAIE.cpp index a198e5cf7..5b92720dc 100644 --- a/compiler/plugins/target/AMD-AIE/iree-amd-aie/Transforms/AMDAIELowerToAIE.cpp +++ b/compiler/plugins/target/AMD-AIE/iree-amd-aie/Transforms/AMDAIELowerToAIE.cpp @@ -19,7 +19,6 @@ #include "iree-amd-aie/IR/AMDAIEOps.h" #include "iree-amd-aie/Transforms/AMDAIEUtils.h" #include "iree-amd-aie/Transforms/Passes.h" -#include "mlir/Dialect/Linalg/IR/Linalg.h" #include "mlir/IR/IRMapping.h" #include "mlir/IR/Iterators.h" #include "mlir/Transforms/GreedyPatternRewriteDriver.h" @@ -61,7 +60,6 @@ void eraseOp(IRRewriter &rewriter, IRMapping &mapper, Operation *op) { namespace { - /// Utility to convert vectors of `size` and `stride` into an /// `AIE::BDDimLayoutArrayAttr`. AIE::BDDimLayoutArrayAttr convertSizeStrideToBDDimLayoutArrayAttr( @@ -265,17 +263,6 @@ LogicalResult acquireOpToAIE(IRRewriter &rewriter, return success(); } -LogicalResult coreLinalgOpToAIE(IRRewriter &rewriter, linalg::LinalgOp linalgOp, - IRMapping &mapper, - SmallVector &toBeErased) { - LLVM_DEBUG(llvm::dbgs() << "Convert [linalg.LinalgOp]\n"); - OpBuilder::InsertionGuard guard(rewriter); - rewriter.setInsertionPoint(linalgOp); - rewriter.clone(*(linalgOp.getOperation()), mapper); - eraseOp(rewriter, mapper, linalgOp); - return success(); -} - LogicalResult coreMemrefExtractStridedMetadataToAIE( IRRewriter &rewriter, memref::ExtractStridedMetadataOp extractStridedMetadataOp, @@ -409,9 +396,6 @@ LogicalResult coreToAIE(IRRewriter &rewriter, AMDAIE::CoreOp coreOp, return coreReleaseOpToAIE(rewriter, releaseOp, mapper, toBeErased); }) - .Case([&](auto linalgOp) { - return coreLinalgOpToAIE(rewriter, linalgOp, mapper, toBeErased); - }) .Case( [&](auto extractStridedMetadataOp) { return coreMemrefExtractStridedMetadataToAIE( @@ -1008,7 +992,7 @@ class AMDAIELowerToAIEPass } AMDAIELowerToAIEPass() = default; - AMDAIELowerToAIEPass(const AMDAIELowerToAIEPass &pass) {}; + AMDAIELowerToAIEPass(const AMDAIELowerToAIEPass &pass){}; void runOnOperation() override; };