[PATCH] D113367: [InstCombine] Refactor and/or of icmp with constant (NFCI)
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 7 11:51:59 PST 2021
nikic created this revision.
nikic added reviewers: spatel, lebedev.ri.
Herald added a subscriber: hiraditya.
nikic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Rather than testing for many specific combinations of predicates and values, compute the exact icmp regions for both comparisons and check whether they union/intersect exactly. If they do, construct the equivalent icmp for the new range. Assuming that the existing code handled all possible cases, this should be NFC.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D113367
Files:
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113367.385360.patch
Type: text/x-patch
Size: 9848 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211107/2135ff01/attachment.bin>
More information about the llvm-commits
mailing list