Skip to content

Commit 17f4f23

Browse files
author
Thomas Preud'homme
committed
[MLIR, test] Fix use of undef FileCheck var
MLIR test Transforms/canonicalize.mlir tries to check for the absence of a sequence of instructions with several CHECK-NOT with one of those directives using a variable defined in another. However CHECK-NOT are checked independently so that is using a variable defined in a pattern that should not occur in the input. This commit removes the dependency between those CHECK-NOT by replacing occurences of variables by the regex that were used to define them. Reviewed By: pifon2a Differential Revision: https://reviews.llvm.org/D99958
1 parent f98567b commit 17f4f23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/test/Transforms/canonicalize.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,8 +1129,8 @@ func @simple_clone_elimination() -> memref<5xf32> {
11291129
return %ret : memref<5xf32>
11301130
}
11311131
// CHECK-NEXT: %[[ret:.*]] = memref.alloc()
1132-
// CHECK-NOT: %[[temp:.*]] = memref.clone
1133-
// CHECK-NOT: memref.dealloc %[[temp]]
1132+
// CHECK-NOT: %{{.*}} = memref.clone
1133+
// CHECK-NOT: memref.dealloc %{{.*}}
11341134
// CHECK: return %[[ret]]
11351135

11361136
// -----

0 commit comments

Comments
 (0)