fallback: legalize: G_VECREDUCE_FADD <N x f64>

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

Snippet:

@G = external global bfloat
@G.1 = external global bfloat

define double @vreduce_fadd_v4f64(ptr %x, double %s) {
  %LGV = load bfloat, ptr @G, align 2
  %B = fsub bfloat %LGV, +inf
  %v = load <4 x double>, ptr %x, align 32
  %red = call reassoc double @llvm.vector.reduce.fadd.v4f64(double %s, <4 x double> %v)
  store bfloat %B, ptr @G.1, align 2
  ret double %red
}

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

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

Reproduce:

llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+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,+zvfh,+f,+d -O2 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %8:_(f64) = reassoc G_VECREDUCE_FADD %6:_(<4 x f64>) (in function: vreduce_fadd_v4f64)
warning: Instruction selection used fallback path for vreduce_fadd_v4f64

Occurrences (4):

InputFunctionConfig
fixed-vectors-reduction-fp.92d97e931f.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fwadd_v8f64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O2
fixed-vectors-reduction-fp.d04400d662.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fadd_v4f64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O2
fixed-vectors-reduction-fp.d472028377.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fwadd_v2f64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O1
fixed-vectors-reduction-fp.ec3c4a711a.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fadd_v4f64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O3

Generated 2026-11-29 14:49 UTC.