fallback: legalize: G_VECREDUCE_UMIN <N x i16>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_VECREDUCE_UMIN <N x i16> M
Occurrences:3 in 3 configs, 1 test files, 5 more counted only
Snippet from:fixed-vectors-reduction-int.bf39ecf6aa.ll (mutant of fixed-vectors-reduction-int.ll) @vreduce_umin_v8i16 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+zve64d -O3
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.3 = external global ptr

define i16 @vreduce_umin_v8i16(ptr %x) {
  %G = getelementptr ptr, ptr %x, i1 true
  %v = load <8 x i16>, ptr %x, align 16
  %red = call i16 @llvm.vector.reduce.umin.v8i16(<8 x i16> %v)
  store ptr %G, ptr @G.3, align 8
  ret i16 %red
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.vector.reduce.umin.v8i16(<8 x i16>) #0

attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+zve64d -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+zve64d -O3 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %4:_(i16) = G_VECREDUCE_UMIN %3:_(<8 x i16>) (in function: vreduce_umin_v8i16)
warning: Instruction selection used fallback path for vreduce_umin_v8i16

Occurrences (3):

InputFunctionConfig
fixed-vectors-reduction-int.05c3b936b4.ll (mutant of fixed-vectors-reduction-int.ll)vreduce_umin_v4i16-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+zba,+zbs -O2
fixed-vectors-reduction-int.bf39ecf6aa.ll (mutant of fixed-vectors-reduction-int.ll)vreduce_umin_v8i16-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+zve64d -O3
fixed-vectors-reduction-int.ca498fc5fb.ll (mutant of fixed-vectors-reduction-int.ll)vreduce_umin_v128i16-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O0

Generated 2026-11-29 14:49 UTC.