This is an archive of the discontinued LLVM Phabricator instance.

[NPM] port -unify-loop-exits to NPM
ClosedPublic

Authored by TaWeiTu on Oct 20 2020, 2:07 AM.

Diff Detail

Event Timeline

TaWeiTu created this revision.Oct 20 2020, 2:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 20 2020, 2:07 AM
TaWeiTu requested review of this revision.Oct 20 2020, 2:07 AM
aeubanks added inline comments.Oct 20 2020, 9:34 AM
llvm/lib/Transforms/Utils/UnifyLoopExits.cpp
241

the legacy pass doesn't call getLoopAnalysisUsage(AU), are you sure that this preserves all loop analyses? Or is it just LoopAnalysis?

TaWeiTu updated this revision to Diff 299394.Oct 20 2020, 9:46 AM

Replace PreservedAnalyses::all() with LoopAnalysis and DominatorTreeAnalysis.

TaWeiTu marked an inline comment as done.Oct 20 2020, 9:56 AM
aeubanks accepted this revision.Oct 20 2020, 10:00 AM
This revision is now accepted and ready to land.Oct 20 2020, 10:00 AM

Could you rebase this on top of master? Using arc patch with a merge conflict doesn't work well.

This revision was landed with ongoing or failed builds.Oct 20 2020, 10:47 AM
Closed by commit rG529ecd19df1f: [NPM] port -unify-loop-exits to NPM (authored by TaWeiTu, committed by aeubanks). · Explain Why
This revision was automatically updated to reflect the committed changes.