diff --git a/lib/Dialect/AIEX/Transforms/AIESubstituteShimDMAAllocations.cpp b/lib/Dialect/AIEX/Transforms/AIESubstituteShimDMAAllocations.cpp index 7efe809e36..3db6a926e6 100644 --- a/lib/Dialect/AIEX/Transforms/AIESubstituteShimDMAAllocations.cpp +++ b/lib/Dialect/AIEX/Transforms/AIESubstituteShimDMAAllocations.cpp @@ -67,13 +67,12 @@ struct AIESubstituteShimDMAAllocationsPass // Convert DMAConfigureTaskForOps that reference shim DMA allocations // to regular DMAConfigureTaskOps - ConversionTarget target(getContext()); - target.addLegalDialect(); - target.addIllegalOp(); + GreedyRewriteConfig rewriter_config = GreedyRewriteConfig(); + rewriter_config.enableRegionSimplification = + GreedySimplifyRegionLevel::Disabled; RewritePatternSet patterns(&getContext()); patterns.insert(&getContext()); - GreedyRewriteConfig rewriter_config = GreedyRewriteConfig(); if (failed(applyPatternsAndFoldGreedily(device, std::move(patterns), rewriter_config))) { signalPassFailure();