This is an archive of the discontinued LLVM Phabricator instance.

apply DivergenceAnalysis for SLU
AbandonedPublic

Authored by drcut on Jun 16 2022, 1:10 PM.

Details

Summary

Apply non-trivial unswitch to the branches that do not diverge after analysis.

Diff Detail

Event Timeline

drcut created this revision.Jun 16 2022, 1:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 16 2022, 1:10 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
drcut requested review of this revision.Jun 16 2022, 1:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 16 2022, 1:10 PM
drcut edited the summary of this revision. (Show Details)Jun 16 2022, 1:14 PM
drcut added reviewers: asbirlea, aeubanks.

@bcahoon This revision is based on your previous implementation (https://reviews.llvm.org/D109762). In the parent revision(https://reviews.llvm.org/D127547) we use FuncPass to re-implement non-trivial LoopUnswitch, thus, we do not invoke DivergenceAnalysis for each loop. Would you please have are look for whether these modifications (implement non-trivial LoopUnswitch with FuncPass and integrate DivergenceAnalysis in the new FuncPass) work on your test cases? Thanks

drcut abandoned this revision.Sep 26 2022, 10:07 AM