This is an archive of the discontinued LLVM Phabricator instance.

[WIP][Test][NewPM] Migrating llvm/test/Transforms/{GVNHoist,GVNSink} to use `opt -passes=foo`
AbandonedPublic

Authored by xgupta on Jul 6 2021, 5:38 AM.

Details

Reviewers
None
Summary

Now that the new PM has been the default for the optimization
pipeline for a while, it would be better to start doing is cleaning up lit
tests that use opt.

Diff Detail

Event Timeline

xgupta requested review of this revision.Jul 6 2021, 5:38 AM
xgupta created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJul 6 2021, 5:38 AM
xgupta added a comment.EditedJul 6 2021, 5:52 AM

I mark this revision as WIP because the automatic script is not yet complete. Out of 34 tests of llvm/test/Transforms/GVNHoist only 29 are passing and out of 9 tests of only 7 are passing. And it seems few passes are rename b/w New and legacy PM, for example, verify-memoryssa is now changed to verify<memoryssa> in NewPM. And also -earlycse-debug-hash is not exist in NewPM as I can see from opt --print-passes.

I will look into more after a couple of days and fix the remaining issues and Also test & update the script for other lit tests that use opt tool.

xgupta abandoned this revision.Jul 7 2021, 8:12 PM

Not motivated to complete it now :)