[PATCH] D139253: [InstCombine] fold more icmp + select patterns by distributive laws

chenglin.bi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 3 01:49:23 PST 2022


bcl5980 created this revision.
bcl5980 added reviewers: RKSimon, spatel.
Herald added a subscriber: hiraditya.
Herald added a project: All.
bcl5980 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

follow up D139076 <https://reviews.llvm.org/D139076>, add icmp with not only eq/ne, but also gt/lt/ge/le.


https://reviews.llvm.org/D139253

Files:
  llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
  llvm/test/Transforms/InstCombine/select-cmp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139253.479816.patch
Type: text/x-patch
Size: 9064 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221203/6b950e36/attachment.bin>


More information about the llvm-commits mailing list