[MLIR, test] Fix use of undef FileCheck var
authorThomas Preud'homme <thomasp@graphcore.ai>
Sun, 28 Mar 2021 00:03:37 +0000 (00:03 +0000)
committerThomas Preud'homme <thomasp@graphcore.ai>
Tue, 6 Apr 2021 15:58:09 +0000 (16:58 +0100)
commit17f4f23eeab402c792fb5c6a8e66be6afd88c33f
tree2a866171555534c48941ecb7709b707241b543de
parentf98567b3fecb2d0efe390f7c3f309333287d9398
[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
mlir/test/Transforms/canonicalize.mlir