[PATCH] D114272: [InstCombine] Add two optimizations for mul-and-icmp patterns
Fabian Wolff via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 19 12:40:08 PST 2021
fwolff created this revision.
fwolff added reviewers: efriedma, RKSimon, spatel, xbolva00.
fwolff added a project: LLVM.
Herald added a subscriber: hiraditya.
fwolff requested review of this revision.
Herald added a subscriber: llvm-commits.
Fixes PR#40493 <https://bugs.llvm.org/show_bug.cgi?id=40493>, and in principle also PR#51551 <https://bugs.llvm.org/show_bug.cgi?id=51551>, but the known bits analysis isn't quite smart enough to handle the `assume` in the example there.
The entire logic for this patch has been discussed in PR#40493, it just seems that nobody has gotten around to implementing it yet.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D114272
Files:
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstCombine/pr40493.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114272.388596.patch
Type: text/x-patch
Size: 6981 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211119/df307727/attachment.bin>
More information about the llvm-commits
mailing list