[PATCH] D139109: [LoopUnswitch] Perform loop unswitching on select instructions
Sergei Kachkov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 1 06:29:19 PST 2022
kachkov98 created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
kachkov98 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Try to convert select instruction with loop-invariant condition into
control-flow equivalent (if-then branch and phi node) and unswitch
this branch. This unswitching is always non-trivial since the successors
of created branch are not loop exits, so it requires cloning of loop.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D139109
Files:
llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
llvm/test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139109.479274.patch
Type: text/x-patch
Size: 12248 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221201/d484a4f8/attachment.bin>
More information about the llvm-commits
mailing list