[PATCH] D147275: [InstCombine] Extend simplifications for `(icmp ({z|s}ext X), C)` where `C` is vector
Noah Goldstein via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 30 14:29:52 PDT 2023
goldstein.w.n created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
goldstein.w.n requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Previous logic only applied for `ConstantInt` which misses all vector
cases. New code works for splat/non-splat vectors as well. No change
to the underlying simplifications.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D147275
Files:
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/test/Transforms/InstSimplify/vec-icmp-of-cast.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147275.509821.patch
Type: text/x-patch
Size: 11822 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230330/38e6c83b/attachment.bin>
More information about the llvm-commits
mailing list