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

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 16 12:32:07 PDT 2024


alexey-bataev 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?

Looks like LLVM IR supports vector versions of these functions. Need to add them to isTriviallyVectorizable function and need to be sure that all targets support lowering for these intrinsics and correctly define the cost in TTI

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


More information about the llvm-commits mailing list