fallback: legalize: G_VECREDUCE_FMIN <N x f32>

Run:main-b577f07195-20261129-101839
Kind:fallback
Category:legalize: G_VECREDUCE_FMIN <N x f32>
Occurrences:13 in 7 configs, 3 test files
Snippet from:fold-binary-reduce.ll @reduce_fmin via llvm-extract
Config:-mtriple=riscv64 -mattr=+d,+zvfh,+v,+zbb -target-abi=lp64d -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define float @reduce_fmin(float %x, <4 x float> %v) {
entry:
  %rdx = call float @llvm.vector.reduce.fmin.v4f32(<4 x float> %v)
  %res = call float @llvm.minnum.f32(float %x, float %rdx)
  ret float %res
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.minnum.f32(float, float) #0

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

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

Reproduce:

llc -mtriple=riscv64 -mattr=+d,+zvfh,+v,+zbb -target-abi=lp64d -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+d,+zvfh,+v,+zbb -target-abi=lp64d -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %3:_(f32) = G_VECREDUCE_FMIN %1:_(<4 x f32>) (in function: reduce_fmin)
warning: Instruction selection used fallback path for reduce_fmin

Occurrences (13):

InputFunctionConfig
double_reduct.llfmin_f32-mtriple=riscv32 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=ilp32d -verify-machineinstrs
double_reduct.llfmin_f32-mtriple=riscv64 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=lp64d -verify-machineinstrs
fold-binary-reduce.llreduce_fmin-mtriple=riscv64 -mattr=+d,+zvfh,+v,+zbb -target-abi=lp64d -verify-machineinstrs
double_reduct.2e5066af6b.ll (mutant of double_reduct.ll)fmin_f32-mtriple=riscv32 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=ilp32d -verify-machineinstrs
double_reduct.5b18065f7b.ll (mutant of double_reduct.ll)fmin_f32-mtriple=riscv32 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=ilp32d -verify-machineinstrs
double_reduct.a051090e90.ll (mutant of double_reduct.ll)fmin_f32-mtriple=riscv64 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=lp64d -verify-machineinstrs
double_reduct.b13efc7ace.ll (mutant of double_reduct.ll)fmin_f32-mtriple=riscv64 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=lp64d -verify-machineinstrs
double_reduct.bec42cb2a7.ll (mutant of double_reduct.ll)fmin_f32-mtriple=riscv64 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=lp64d -verify-machineinstrs
double_reduct.ec04e7b6eb.ll (mutant of double_reduct.ll)fmin_f32-mtriple=riscv32 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=ilp32d -verify-machineinstrs
fixed-vectors-reduction-fp.1d4542a86b.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmin_v4f32_nonans-mtriple=riscv32 -mattr=+v,+zfh,+zvfhmin,+f,+d -verify-machineinstrs
fixed-vectors-reduction-fp.5cbc202a20.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmin_v4f32_nonans-mtriple=riscv64 -mattr=+v,+zfh,+zvfhmin,+f,+d -verify-machineinstrs
fixed-vectors-reduction-fp.5da2990a3b.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmin_v4f32_nonans-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zfh,+zvfh,+f,+d -verify-machineinstrs
fixed-vectors-reduction-fp.ccbf0b8f2f.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmin_v4f32_nonans-mtriple=riscv64 -target-abi=lp64d -mattr=+v,+zfh,+zvfh,+f,+d -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.