fallback: legalize: G_VECREDUCE_FADD <N x f16>

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

Snippet:

define half @vreduce_fadd_v7f16(ptr %x, half %s) {
  %v = load <7 x half>, ptr %x, align 16
  %B = udiv i128 42, -1
  %red = call reassoc half @llvm.vector.reduce.fadd.v7f16(half %s, <7 x half> %v)
  store i128 %B, ptr poison, align 4
  ret half %red
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare half @llvm.vector.reduce.fadd.v7f16(half, <7 x half>) #0

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %51:_(f16) = reassoc G_VECREDUCE_FADD %2:_(<7 x f16>) (in function: vreduce_fadd_v7f16)
warning: Instruction selection used fallback path for vreduce_fadd_v7f16

Occurrences (6):

InputFunctionConfig
fixed-vectors-reduction-fp.2329becd27.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fadd_v7f16-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d -O2
fixed-vectors-reduction-fp.37d26c9d1b.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fadd_v4f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+a -O0
fixed-vectors-reduction-fp.92d97e931f.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fadd_v64f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O2
fixed-vectors-reduction-fp.9a1cbd3672.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fadd_v4f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O1
fixed-vectors-reduction-fp.db2b863461.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fadd_v8f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zfh,+zvfh,+f,+d -O0
fixed-vectors-reduction-fp.ec3c4a711a.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fadd_v4f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O3

Generated 2026-11-29 14:49 UTC.