[PATCH] D109762: [NewPM][SimpleLoopUnswitch] Add DivergenceInfo
Brendon Cahoon via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 14 07:44:34 PDT 2021
bcahoon created this revision.
bcahoon added reviewers: sameerds, asbirlea, aeubanks, arsenm.
Herald added subscribers: kerbowa, hiraditya, nhaehnle, jvesely.
bcahoon requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.
Enable DivergenceAnalysis with non-trivial Simple Loop Unswitch.
Because DivergenceAnalysis is a function pass, it's not possible
to add the analysis to the pass manager pipeline when it's used
by a loop pass. This patch creates a new DivergenceInfo instance
only when needed by Simple Loop Unswitch. The PostDominatorTree
is needed as well. This adds DivergenceAnalysis when using the new
pass manager only and does not change the legacy pass manager.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109762
Files:
llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
llvm/test/Transforms/SimpleLoopUnswitch/AMDGPU/lit.local.cfg
llvm/test/Transforms/SimpleLoopUnswitch/AMDGPU/nontrivial-unswitch.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109762.372481.patch
Type: text/x-patch
Size: 6955 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210914/25ec099f/attachment.bin>
More information about the llvm-commits
mailing list