Remove PSIMD variant of RMAX microkernel
PiperOrigin-RevId: 321874530
diff --git a/BUILD.bazel b/BUILD.bazel
index 4e36cbd..db4129a 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -857,7 +857,6 @@
"src/f32-pavgpool/9p8x-minmax-psimd-c4.c",
"src/f32-pavgpool/9x-minmax-psimd-c4.c",
"src/f32-ppmm/gen/4x8-minmax-psimd.c",
- "src/f32-rmax/psimd.c",
"src/x32-fill/psimd.c",
"src/x32-packx/x4-psimd.c",
"src/x32-pad/psimd.c",
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7cf45e6..d2cd5c0 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -534,7 +534,6 @@
src/f32-pavgpool/9p8x-minmax-psimd-c4.c
src/f32-pavgpool/9x-minmax-psimd-c4.c
src/f32-ppmm/gen/4x8-minmax-psimd.c
- src/f32-rmax/psimd.c
src/f32-spmm/gen/4x1-minmax-psimd.c
src/f32-spmm/gen/8x1-minmax-psimd.c
src/f32-spmm/gen/16x1-minmax-psimd.c
diff --git a/src/f32-rmax/psimd.c b/src/f32-rmax/psimd.c
deleted file mode 100644
index 74afbf2..0000000
--- a/src/f32-rmax/psimd.c
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2019 Google LLC
-//
-// This source code is licensed under the BSD-style license found in the
-// LICENSE file in the root directory of this source tree.
-
-#include <assert.h>
-
-#include <psimd.h>
-
-#include <xnnpack/math.h>
-#include <xnnpack/rmax.h>
-
-
-void xnn_f32_rmax_ukernel__psimd(
- size_t n,
- const float* x,
- float* y)
-{
- assert(n != 0);
- assert(n % sizeof(float) == 0);
-
- psimd_f32 vmax0 = psimd_load_splat_f32(x);
- psimd_f32 vmax1 = vmax0;
- psimd_f32 vmax2 = vmax0;
- psimd_f32 vmax3 = vmax0;
- for (; n >= 16 * sizeof(float); n -= 16 * sizeof(float)) {
- const psimd_f32 vx0 = psimd_load_f32(x);
- const psimd_f32 vx1 = psimd_load_f32(x + 4);
- const psimd_f32 vx2 = psimd_load_f32(x + 8);
- const psimd_f32 vx3 = psimd_load_f32(x + 12);
- x += 16;
-
- vmax0 = psimd_max_f32(vmax0, vx0);
- vmax1 = psimd_max_f32(vmax1, vx1);
- vmax2 = psimd_max_f32(vmax2, vx2);
- vmax3 = psimd_max_f32(vmax3, vx3);
- }
- psimd_f32 vmax0123 = psimd_max_f32(psimd_max_f32(vmax0, vmax1), psimd_max_f32(vmax2, vmax3));
- for (; n >= 4 * sizeof(float); n -= 4 * sizeof(float)) {
- const psimd_f32 vx = psimd_load_f32(x);
- vmax0123 = psimd_max_f32(vmax0123, vx);
- x += 4;
- }
- float vmax = psimd_reduce_max_f32(vmax0123);
- if XNN_UNLIKELY(n != 0) {
- do {
- const float vx = *x++;
- vmax = math_max_f32(vx, vmax);
- n -= 4;
- } while (n != 0);
- }
- *y = vmax;
-}