[PATCH] D116309: [Huawei][LoopVectorize] Convert switch blocks into branch sequence

Allen zhong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 27 05:48:52 PST 2021


Allen created this revision.
Herald added subscribers: ormris, steven_wu, hiraditya.
Allen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Removing switch blocks and replacing them with compares and branches
allows architectures that support predication to vectorize.


https://reviews.llvm.org/D116309

Files:
  llvm/include/llvm/Transforms/Utils/SimplifyCFGOptions.h
  llvm/lib/Passes/PassBuilderPipelines.cpp
  llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
  llvm/lib/Transforms/Utils/SimplifyCFG.cpp
  llvm/test/Other/new-pm-lto-defaults.ll
  llvm/test/Transforms/LoopVectorize/switch_vectorization.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116309.396299.patch
Type: text/x-patch
Size: 14300 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211227/cc47de99/attachment.bin>


More information about the llvm-commits mailing list