This is an archive of the discontinued LLVM Phabricator instance.

[StructurizeCFG][NewPM] Port -structurizecfg to NPM
ClosedPublic

Authored by aeubanks on Oct 7 2020, 10:10 PM.

Details

Summary

This doesn't support -structurizecfg-skip-uniform-regions since that
would require porting LegacyDivergenceAnalysis.

The NPM doesn't support adding a non-analysis pass as a dependency of
another, so I had to add -lowerswitch to some tests or pin them to the
legacy PM.

This is the only RegionPass in tree, so I simply copied the logic for
finding all Regions from the legacy PM's RGManager into
StructurizeCFG::run().

Diff Detail

Event Timeline

aeubanks created this revision.Oct 7 2020, 10:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 7 2020, 10:10 PM
aeubanks requested review of this revision.Oct 7 2020, 10:10 PM
arsenm accepted this revision.Oct 23 2020, 11:31 AM
This revision is now accepted and ready to land.Oct 23 2020, 11:31 AM
This revision was landed with ongoing or failed builds.Oct 23 2020, 3:56 PM
This revision was automatically updated to reflect the committed changes.