This is an archive of the discontinued LLVM Phabricator instance.

[UpdateTestChecks] Use a counter for unpredictable FileCheck variables
ClosedPublic

Authored by arichardson on May 11 2022, 10:43 AM.

Details

Summary

Variable captures such as <MCInst # can change based on unrelated changes
to the LLVM backends, to avoid the generated test cases being different
use an incrementing counter for variable names instead of using the
actual value from the output file.
This change may also be beneficial for some nameless IR variables
(especially when combined with filtering of output), but for now I've
restricted this change to the obvious candidates (--asm-show-inst output).

Depends on D125307

Diff Detail

Event Timeline

arichardson created this revision.May 11 2022, 10:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 11 2022, 10:43 AM
Herald added a subscriber: StephenFan. · View Herald Transcript
arichardson requested review of this revision.May 11 2022, 10:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 11 2022, 10:43 AM
MaskRay accepted this revision.May 11 2022, 10:50 AM
This revision is now accepted and ready to land.May 11 2022, 10:50 AM
This revision was landed with ongoing or failed builds.May 14 2022, 7:43 AM
This revision was automatically updated to reflect the committed changes.