Fix python test to register all passes before using "normalize-memrefs"

The pass moved from mlir.transforms to the Memref dialect.
This commit is contained in:
Mehdi Amini 2022-01-25 05:15:08 +00:00
parent 63b8018468
commit e51a20e166
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ run(testParseFail)
def testInvalidNesting():
with Context():
try:
import mlir.all_passes_registration
pm = PassManager.parse("builtin.func(normalize-memrefs)")
except ValueError as e:
# CHECK: Can't add pass 'NormalizeMemRefs' restricted to 'builtin.module' on a PassManager intended to run on 'builtin.func', did you intend to nest?