Skip to content

Commit

Permalink
fix assertion error caused by region simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
andrej committed Sep 6, 2024
1 parent f66c5fa commit 9b13322
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,12 @@ struct AIESubstituteShimDMAAllocationsPass

// Convert DMAConfigureTaskForOps that reference shim DMA allocations
// to regular DMAConfigureTaskOps
ConversionTarget target(getContext());
target.addLegalDialect<AIEXDialect>();
target.addIllegalOp<DMAConfigureTaskForOp>();
GreedyRewriteConfig rewriter_config = GreedyRewriteConfig();
rewriter_config.enableRegionSimplification =
GreedySimplifyRegionLevel::Disabled;
RewritePatternSet patterns(&getContext());
patterns.insert<DMAConfigureTaskForOpPattern>(&getContext());

GreedyRewriteConfig rewriter_config = GreedyRewriteConfig();
if (failed(applyPatternsAndFoldGreedily(device, std::move(patterns),
rewriter_config))) {
signalPassFailure();
Expand Down

0 comments on commit 9b13322

Please sign in to comment.