[PATCH] D129726: [InstCombine] add a constraint for x <u minSigned --> x >s -1
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 14 07:27:28 PDT 2022
spatel added a comment.
This will not solve the problem in general. We need to add a fold for lshr values. We should be able to optimize something like this:
https://godbolt.org/z/7Mhdd8dfa
https://alive2.llvm.org/ce/z/3sB6au
Can we generalize or adapt this recent patch?
4f39d8333324bdcf2056
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129726/new/
https://reviews.llvm.org/D129726
More information about the llvm-commits
mailing list