This is an archive of the discontinued LLVM Phabricator instance.

[ArgPromotion] Regenerate test checks for crash.ll – restored ALL_OLDPM prefix, add –allow-unused-prefixes.
ClosedPublic

Authored by vpykhtin on Feb 20 2022, 4:31 AM.

Details

Summary

This test has two runs that differ in what functions are left after the inliner, for example: barney exists on OLDPM path but don’t exist on NEWPM path. I restored prefixes this test had had after automatic checks were introduced for this test.

For now there are no checks left for ALL_NEWPM path, but the behavior seem to change over time so I added –allow-unused-prefixes to ease following check updates.

Renamed %tmp => %temp IR values to avoid update warning.

Diff Detail

Event Timeline

vpykhtin requested review of this revision.Feb 20 2022, 4:31 AM
vpykhtin created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 20 2022, 4:31 AM
nikic accepted this revision.Feb 21 2022, 12:50 AM

LGTM

llvm/test/Transforms/ArgumentPromotion/crash.ll
2–3

If there's just one prefix left, we usually prefer switching it to the default CHECK.

This revision is now accepted and ready to land.Feb 21 2022, 12:50 AM
vpykhtin updated this revision to Diff 410311.Feb 21 2022, 8:10 AM

replaced ARGPROMOTION prefix with CHECK, renamed %tmp IR values to %temp to avoid update warnings like "WARNING: Change IR value name 'tmp1' or use --prefix-filecheck-ir-name to prevent possible conflict with scripted FileCheck name"

vpykhtin marked an inline comment as done.Feb 21 2022, 8:11 AM
This revision was landed with ongoing or failed builds.Feb 21 2022, 8:22 AM
This revision was automatically updated to reflect the committed changes.
thakis added a subscriber: thakis.Feb 21 2022, 8:36 AM

This seems to break tests: http://45.33.8.238/linux/69178/step_12.txt

Please take a look and revert for now if it takes a while to fix.

vpykhtin reopened this revision.Feb 21 2022, 11:38 PM

Sorry for breaking the test, it turned out it has differences between two runs in what functions are left after the inliner, for example: barney exists on the first path but don’t exist on the second path. This cannot be handled with a single CHECK prefix.

This revision is now accepted and ready to land.Feb 21 2022, 11:38 PM
vpykhtin updated this revision to Diff 410457.Feb 21 2022, 11:41 PM
vpykhtin retitled this revision from [ArgPromotion] Regenerate test checks for crash.ll - removed ALL_NEWPM prefix. to [ArgPromotion] Regenerate test checks for crash.ll – restored ALL_OLDPM prefix, add –allow-unused-prefixes..
vpykhtin edited the summary of this revision. (Show Details)

Fixed, updated description of the patch.

This revision was landed with ongoing or failed builds.Feb 23 2022, 2:40 AM
This revision was automatically updated to reflect the committed changes.