fallback: legalize: G_VECREDUCE_FMAXIMUM <N x f32>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_VECREDUCE_FMAXIMUM <N x f32> M
Occurrences:9 in 8 configs, 1 test files, 50 more counted only
Snippet from:fixed-vectors-reduction-fp.df260a3a74.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_fmaximum_v8f32 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+d -O2
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define float @vreduce_fmaximum_v8f32(ptr %x) {
  %v = load <8 x float>, ptr %x, align 32
  %red = call float @llvm.vector.reduce.fmaximum.v8f32(<8 x float> %v)
  %B = fdiv float %red, 4.200000e+01
  ret float %B
}

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

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %2:_(f32) = G_VECREDUCE_FMAXIMUM %1:_(<8 x f32>) (in function: vreduce_fmaximum_v8f32)
warning: Instruction selection used fallback path for vreduce_fmaximum_v8f32

Occurrences (9):

InputFunctionConfig
fixed-vectors-reduction-fp.20a69d56ae.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmaximum_v32f32-mtriple=riscv32 -verify-machineinstrs -mattr=+zfh,+f,+d -O0 -code-model=small
fixed-vectors-reduction-fp.20a69d56ae.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmaximum_v128f32_nonans-mtriple=riscv32 -verify-machineinstrs -mattr=+zfh,+f,+d -O0 -code-model=small
fixed-vectors-reduction-fp.2329becd27.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmaximum_v8f32-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d -O2
fixed-vectors-reduction-fp.23e67ef23a.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmaximum_v2f32_nonans-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+m -O1
fixed-vectors-reduction-fp.92d97e931f.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmaximum_v64f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O2
fixed-vectors-reduction-fp.c851aa628e.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmaximum_v32f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O0
fixed-vectors-reduction-fp.db2b863461.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmaximum_v32f32_nonans-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zfh,+zvfh,+f,+d -O0
fixed-vectors-reduction-fp.df260a3a74.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmaximum_v8f32-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+d -O2
fixed-vectors-reduction-fp.eafd04ab2b.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmaximum_v2f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+m,+zcb -O3

Generated 2026-11-29 14:49 UTC.