Skip to content

Commit 58f592b

Browse files
authored
[Calyx] Canonicalization should exclude scf.parallel as well (#8410)
1 parent 3b12279 commit 58f592b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Dialect/Calyx/Transforms/ExcludeExecuteRegionCanonicalize.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ void ExcludeExecuteRegionCanonicalizePass::runOnOperation() {
5353

5454
// Add op-specific canonicalization patterns
5555
for (const RegisteredOperationName &op : ctx->getRegisteredOperations()) {
56-
if (op.getStringRef() == "scf.execute_region")
56+
if (op.getStringRef() == "scf.execute_region" ||
57+
op.getStringRef() == "scf.parallel")
5758
continue;
5859

5960
op.getCanonicalizationPatterns(patterns, ctx);

0 commit comments

Comments
 (0)