This is an archive of the discontinued LLVM Phabricator instance.

[test, GVN] Fix use of var defined in CHECK-NOT
ClosedPublic

Authored by thopre on Mar 30 2021, 5:41 AM.

Details

Summary

Commit 22ce5eb051591b828b1ce4238624b6e95d334a5b, changed checks in
GVN/big-endian.ll into CHECK-NOT. The intent was to check that a
succession of lines does not occur but each CHECK-NOT is checked
independently. In other word, one CHECK-NOT uses a variable defined
in a pattern (the one defining the variable) that should not occur in
the input. The bug was then copied over in NewGVN/big-endian.ll.

This commit only checks for the absence of i16 load which rules out the
presence of the whole sequence and does not involve an undefined
variable.

Diff Detail

Event Timeline

thopre created this revision.Mar 30 2021, 5:41 AM
thopre requested review of this revision.Mar 30 2021, 5:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 30 2021, 5:41 AM
thopre updated this revision to Diff 334157.Mar 30 2021, 7:03 AM

Add fix for GVN/PRE/load-pre-nonlocal.ll

nikic added a subscriber: nikic.Apr 6 2021, 3:08 AM

I'd suggest to simply switch these to update_tests_checks.py instead. Or is there some reason this is not possible for these tests?

thopre updated this revision to Diff 335479.Apr 6 2021, 4:25 AM

Regenerate FileCheck directives with update_test_checks

thopre added a comment.Apr 6 2021, 4:26 AM

I'd suggest to simply switch these to update_tests_checks.py instead. Or is there some reason this is not possible for these tests?

Sure. I tried to stick to the current way the test work to minimize the size of the patch. update_tests_checks.py generated tests are a lot more effort to review when something change, easy to miss something IMO.

nikic accepted this revision.Apr 6 2021, 8:50 AM

LGTM

This revision is now accepted and ready to land.Apr 6 2021, 8:50 AM
This revision was landed with ongoing or failed builds.Apr 6 2021, 9:00 AM
This revision was automatically updated to reflect the committed changes.