Skip to content

Commit a05036d

Browse files
authored
[tpp-sched] Fix scoping of convert-cf-to-llvm from func to module (#1050)
With the improper scoping it kept around unrealized_casts.
1 parent 6ed8495 commit a05036d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/mlir/tpp/sched/bundles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,8 @@ def default_pipeline(
339339
mod = apply_registered_pass(mod, "convert-index-to-llvm")
340340
mod = apply_registered_pass(mod, "convert-func-to-llvm")
341341
mod = apply_registered_pass(mod, "convert-arith-to-llvm")
342+
mod = apply_registered_pass(mod, "convert-cf-to-llvm")
342343
func = match(mod, ops={"func.func"})
343-
func = apply_registered_pass(func, "convert-cf-to-llvm")
344344
if def_parallel:
345345
func = apply_registered_pass(func, "convert-omp-to-llvm")
346346
func = apply_registered_pass(func, "convert-ub-to-llvm")

0 commit comments

Comments
 (0)