[PATCH] D122485: [SimplifyCFG] Try to fold switch with single result value and power-of-2 cases to mask+select

chenglin.bi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 13 19:42:09 PDT 2022


bcl5980 updated this revision to Diff 422724.
bcl5980 retitled this revision from "[SimplifyCFG] Fold mutil cases to And mask" to "[SimplifyCFG] Try to fold switch with single result value and power-of-2 cases to mask+select".
bcl5980 added a comment.

rebase and update comments


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122485/new/

https://reviews.llvm.org/D122485

Files:
  llvm/lib/Transforms/Utils/SimplifyCFG.cpp
  llvm/test/Transforms/SimplifyCFG/switch-to-select-two-case.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122485.422724.patch
Type: text/x-patch
Size: 9230 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220414/134b626d/attachment-0001.bin>


More information about the llvm-commits mailing list