[llvm] [InstCombine] Fold `(x < y) ? -1 : zext(x != y)` into `u/scmp(x,y)` (PR #101049)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 16 11:36:13 PDT 2024


nikic wrote:

> If these are starting to generate llvm.scmp/ucmp, do they need to be careful with vectorization if that is not yet supported for cmp intrinsics?

Do you currently see vectorization for three-way comparison patterns? I wouldn't really expect these to occur in vectorizable contexts.

https://github.com/llvm/llvm-project/pull/101049


More information about the llvm-commits mailing list