fallback: legalize: G_VECREDUCE_FMAX <N x f16>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_VECREDUCE_FMAX <N x f16> M
Occurrences:3 in 3 configs, 1 test files, 9 more counted only
Snippet from:fixed-vectors-reduction-fp.91305c000f.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_fmax_v4f16 via llvm-extract
Config:-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+f,+d -O2
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define half @vreduce_fmax_v4f16(ptr %x) {
  %B = shl i1 true, false
  %v = load <4 x half>, ptr %x, align 8
  %red = call half @llvm.vector.reduce.fmax.v4f16(<4 x half> %v)
  store i1 %B, ptr poison, align 1
  ret half %red
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare half @llvm.vector.reduce.fmax.v4f16(<4 x half>) #0

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

Reproduce:

llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+f,+d -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+f,+d -O2 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %5:_(f16) = G_VECREDUCE_FMAX %4:_(<4 x f16>) (in function: vreduce_fmax_v4f16)
warning: Instruction selection used fallback path for vreduce_fmax_v4f16

Occurrences (3):

InputFunctionConfig
fixed-vectors-reduction-fp.71c33a8e49.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmax_v128f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O2
fixed-vectors-reduction-fp.91305c000f.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmax_v4f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+f,+d -O2
fixed-vectors-reduction-fp.eb73f5972c.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmax_v4f16_nonans_noinfs-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zicsr -O3

Generated 2026-11-29 14:49 UTC.