Skip to content

Commit a371238

Browse files
committed
add cse,canonicalize before one-shot-bufferize
1 parent 4520d97 commit a371238

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/jit/mlir.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,7 @@ static const std::string cpu_pipeline =
679679
"add-comm-cache-keys,"
680680
"lower-distruntime-to-idtr,"
681681
"convert-ndarray-to-linalg,"
682+
"cse,"
682683
"canonicalize,"
683684
"func.func(tosa-to-linalg),"
684685
"func.func(tosa-to-tensor),"
@@ -688,6 +689,8 @@ static const std::string cpu_pipeline =
688689
"arith-expand,"
689690
"memref-expand,"
690691
"func.func(empty-tensor-to-alloc-tensor),"
692+
"cse,"
693+
"canonicalize,"
691694
"one-shot-bufferize,"
692695
"canonicalize,"
693696
"imex-remove-temporaries,"

0 commit comments

Comments
 (0)