This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Add implicit negative check for the set_gpr_idx tests
ClosedPublic

Authored by foad on Apr 30 2021, 6:20 AM.

Details

Summary

The only effect of the optimization is to remove s_set_gpr_idx_*
instructions, and update_mir_test_checks.py always inserts CHECK: rather
than CHECK-NEXT: checks, so without this implicit negative check, the
tests would always pass even if the optimization did nothing.

Diff Detail

Event Timeline

foad created this revision.Apr 30 2021, 6:20 AM
foad requested review of this revision.Apr 30 2021, 6:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 30 2021, 6:20 AM
arsenm accepted this revision.Apr 30 2021, 6:24 AM

update_mir_test_checks probably should have an option to use -NEXT

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