forked from OSchip/llvm-project
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:
parent
63b8018468
commit
e51a20e166
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue