[llvm] [AArch64][SVE2] SVE2 NBSL instruction lowering. (PR #89732)

David Green via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 23 07:16:54 PDT 2024


================
@@ -3750,6 +3750,23 @@ let Predicates = [HasSVE2orSME] in {
 
   // SVE2 extract vector (immediate offset, constructive)
   def EXT_ZZI_B : sve2_int_perm_extract_i_cons<"ext">;
+
+  // zext(cmpeq(bsl(x, y, z), splat(0))) -> nbsl(x, y, z)
----------------
davemgreen wrote:

It may be possible to pass a pattern fragment to sve2_int_bitwise_ternary_op, like bsl already does.

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


More information about the llvm-commits mailing list