This is an archive of the discontinued LLVM Phabricator instance.

[mlir][transform] Clean up test-interpreter.mlir test
ClosedPublic

Authored by springerm on May 4 2023, 10:06 PM.

Details

Summary

Remove redundant CHECK lines. This test does not use FileCheck.

Diff Detail

Event Timeline

springerm created this revision.May 4 2023, 10:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2023, 10:06 PM
springerm requested review of this revision.May 4 2023, 10:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2023, 10:06 PM
ftynse requested changes to this revision.May 5 2023, 3:54 AM

It wasn't missing, it was never necessary in this test. Specifically, the sequence doesn't do anything with the function declaration here so there is no point in checking that it is still present.

This revision now requires changes to proceed.May 5 2023, 3:54 AM

There is a CHECK-NOT in line 259, should I remove it instead?

(The CHECK-LABEL was necessary so that the call @bar of the test afterwards is not matched by the CHECK-NOT.)

ftynse added a comment.May 5 2023, 4:01 AM

Yes, let's drop that, it isn't really necessary. We see that the transformation was applied from the remark it emits. And the point of that test is not crashing because there is no second attempt at erasing the op.

springerm updated this revision to Diff 519798.May 5 2023, 4:08 AM

address comments

springerm retitled this revision from [mlir][transform] Fix test-interpreter.mlir test to [mlir][transform] Clean up test-interpreter.mlir test.May 5 2023, 4:08 AM
springerm edited the summary of this revision. (Show Details)
ftynse accepted this revision.May 5 2023, 4:09 AM
This revision is now accepted and ready to land.May 5 2023, 4:09 AM
This revision was landed with ongoing or failed builds.May 5 2023, 4:17 AM
This revision was automatically updated to reflect the committed changes.