[PATCH] D141753: [InstCombine] Optimize (icmp slt (1 << Y), 1) -> (icmp eq Y, BitWidth-1).
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 14 05:59:47 PST 2023
spatel added a comment.
It's good cleanup and seems correct, but it can be generalized even more (could make it another patch if you prefer):
https://alive2.llvm.org/ce/z/3YB2vs
Need more tests like this:
https://alive2.llvm.org/ce/z/hVNnPJ
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141753/new/
https://reviews.llvm.org/D141753
More information about the llvm-commits
mailing list