This is an archive of the discontinued LLVM Phabricator instance.

[UpdateTestChecks] Fix `update_test_checks.py` to add "unused" prefixes
ClosedPublic

Authored by mtrofin on Nov 28 2022, 10:59 AM.

Details

Summary

The support introduced in D124306 was only added to update_llc_test_checks.py, but the motivating usecases (see https://lists.llvm.org/pipermail/llvm-dev/2021-February/148326.html) cover update_test_checks.py, update_cc_test_checks.py, and update_analyze_test_checks.py, too.

Issue #59220.

Diff Detail

Event Timeline

mtrofin created this revision.Nov 28 2022, 10:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 28 2022, 10:59 AM
mtrofin requested review of this revision.Nov 28 2022, 10:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 28 2022, 10:59 AM

Please also fix the *_analysis one too.

(and maybe the _cc one?)

(and maybe the _cc one?)

Good point, let me look at the other few there, too.

mtrofin updated this revision to Diff 478339.Nov 28 2022, 12:42 PM

fixed the other 2 scripts

Herald added a project: Restricted Project. · View Herald TranscriptNov 28 2022, 12:42 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
mtrofin edited the summary of this revision. (Show Details)Nov 28 2022, 12:42 PM

Thanks!
There's also the one for MCA, but this situation basically never happens for those tests.

mtrofin edited the summary of this revision. (Show Details)Nov 28 2022, 12:54 PM
mtrofin updated this revision to Diff 478343.Nov 28 2022, 12:55 PM

missed one

Thanks!
There's also the one for MCA, but this situation basically never happens for those tests.

Yup, checked that and the mir one. The latter seems to be implementing its own "add_checks", so would leave it as-is (plus, I'm guessing, by their nature, mir tests wouldn't get into this type of scenario anyway, IIUC).

Thanks!
There's also the one for MCA, but this situation basically never happens for those tests.

Yup, checked that and the mir one. The latter seems to be implementing its own "add_checks", so would leave it as-is (plus, I'm guessing, by their nature, mir tests wouldn't get into this type of scenario anyway, IIUC).

mca!=mir

Thanks!
There's also the one for MCA, but this situation basically never happens for those tests.

Yup, checked that and the mir one. The latter seems to be implementing its own "add_checks", so would leave it as-is (plus, I'm guessing, by their nature, mir tests wouldn't get into this type of scenario anyway, IIUC).

mca!=mir

Right - they are different, there's a update_mir_test_checks and also an update_mca_test_checks; basically agreeing that, indeed, after patching _cc and _analysis (and update_test_checks), the remaining don't need patching.

lebedev.ri accepted this revision.Nov 28 2022, 1:17 PM

Anyways, assuming you tested that this works, LG.
Thank you.

This revision is now accepted and ready to land.Nov 28 2022, 1:17 PM
This revision was landed with ongoing or failed builds.Nov 28 2022, 1:35 PM
This revision was automatically updated to reflect the committed changes.