This is an archive of the discontinued LLVM Phabricator instance.

[MLIR, test] Fix use of undef FileCheck var
ClosedPublic

Authored by thopre on Apr 6 2021, 7:26 AM.

Details

Summary

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.

Diff Detail

Event Timeline

thopre created this revision.Apr 6 2021, 7:26 AM
thopre requested review of this revision.Apr 6 2021, 7:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 6 2021, 7:26 AM
pifon2a accepted this revision.Apr 6 2021, 7:33 AM

thanks

This revision is now accepted and ready to land.Apr 6 2021, 7:33 AM
This revision was automatically updated to reflect the committed changes.