This is an archive of the discontinued LLVM Phabricator instance.

[NewPM] Pin tests with -debug-pass to legacy PM
ClosedPublic

Authored by aeubanks on Sep 18 2020, 2:29 PM.

Details

Summary

-debug-pass is a legacy PM only option.

Some tests checks that the pass returned that it made a change,
which is not relevant to the NPM, since passes return PreservedAnalyses.

Some tests check that passes are freed at the proper time, which is also
not relevant to the NPM.

Diff Detail

Event Timeline

aeubanks created this revision.Sep 18 2020, 2:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 18 2020, 2:29 PM
aeubanks requested review of this revision.Sep 18 2020, 2:29 PM
asbirlea accepted this revision.Sep 21 2020, 12:49 PM

For the NPM, there's -debug-pass-manager, so this would give you the corresponding coverage (with a different CHECK prefix). Some tests already have this.
Optional to add coverage for phi-values-usage.ll and alias-analysis-uses.ll, the others are already covered or are checking for Changed.

This revision is now accepted and ready to land.Sep 21 2020, 12:49 PM
aeubanks updated this revision to Diff 293303.Sep 21 2020, 5:48 PM

add NPM CHECK lines for phi-values-usage.ll
alias-analysis-uses.ll doesn't really seem to be testing anything that would make sense in the NPM

This revision was automatically updated to reflect the committed changes.