[llvm] [LV] Vectorize selecting last IV of min/max element. (PR #141431)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 22 03:54:02 PST 2025
================
@@ -0,0 +1,132 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals none --version 5
+; RUN: opt -passes=loop-vectorize -force-vector-width=4 -force-vector-interleave=1 -S %s | FileCheck %s
+
+define i64 @test_vectorize_select_fmaxnum_idx(ptr %src, i64 %n) {
----------------
ayalz wrote:
May be good to continue and indicate if the desired `idx` is first or last, here and below.
https://github.com/llvm/llvm-project/pull/141431
More information about the llvm-commits
mailing list