HomePhabricator

[StructurizeCFG][NewPM] Port -structurizecfg to NPM

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

Description

[StructurizeCFG][NewPM] Port -structurizecfg to NPM

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().

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D89026

Details

Committed
aeubanksOct 23 2020, 3:54 PM
Reviewer
arsenm
Differential Revision
D89026: [StructurizeCFG][NewPM] Port -structurizecfg to NPM
Parents
rGba22c403b2b3: [Inliner][NPM] Properly pass callee AAResults
Branches
Unknown
Tags
Unknown