[PATCH] D93943: [SimplifyCFG] Update SimplifyBranchOnICmpChain to recognize select form of and/or
Juneyoung Lee via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 30 05:20:56 PST 2020
aqjune created this revision.
aqjune added reviewers: lebedev.ri, nikic, fhahn, spatel.
Herald added a subscriber: hiraditya.
aqjune requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This patch teaches SimplifyCFG::SimplifyBranchOnICmpChain to understand select form of
(x == C1 || x == C2 || ...) / (x != C1 && x != C2 && ...) and optimize them into switch if possible.
D93065 <https://reviews.llvm.org/D93065> has more context about the transition, including links to the list of optimizations being updated.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D93943
Files:
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/Transforms/SimplifyCFG/switch_create.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93943.314105.patch
Type: text/x-patch
Size: 4788 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201230/0e0846b2/attachment.bin>
More information about the llvm-commits
mailing list