fallback: legalize: G_VECREDUCE_SEQ_FADD <N x f32>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_VECREDUCE_SEQ_FADD <N x f32> M
Occurrences:7 in 5 configs, 1 test files, 43 more counted only
Snippet from:fixed-vectors-reduction-fp.f0b5383f11.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_ord_fadd_v4f32 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+zba -O2
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global float

define float @vreduce_ord_fadd_v4f32(ptr %x, float %s) {
  %B = frem float %s, %s
  %v = load <4 x float>, ptr %x, align 16
  %red = call float @llvm.vector.reduce.fadd.v4f32(float %s, <4 x float> %v)
  store float %B, ptr @G, align 4
  ret float %red
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (7):

InputFunctionConfig
fixed-vectors-reduction-fp.477b103e1d.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fwadd_v32f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+m -O1
fixed-vectors-reduction-fp.59071e44ad.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fwadd_v16f32-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d -O3
fixed-vectors-reduction-fp.90b6998bbe.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fadd_v7f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+c,+zvbb -O3
fixed-vectors-reduction-fp.ca298d199c.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fadd_v7f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+zicsr -O3
fixed-vectors-reduction-fp.ca298d199c.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fadd_v64f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+zicsr -O3
fixed-vectors-reduction-fp.f0b5383f11.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fadd_v4f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+zba -O2
fixed-vectors-reduction-fp.f0b5383f11.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fadd_v7f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+zba -O2

Generated 2026-11-29 14:49 UTC.