fallback: legalize: G_VECREDUCE_FADD <N x f64>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_VECREDUCE_FADD <N x f64> M
Occurrences:9 in 9 configs, 1 test files, 35 more counted only
Snippet from:fixed-vectors-reduction-fp.90b6998bbe.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_fwadd_v16f64 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+c,+zvbb -O3
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global double

define double @vreduce_fwadd_v16f64(ptr %x, double %s) {
  %B = frem double %s, %s
  %v = load <16 x float>, ptr %x, align 64
  %e = fpext <16 x float> %v to <16 x double>
  %red = call reassoc double @llvm.vector.reduce.fadd.v16f64(double %s, <16 x double> %e)
  store double %B, ptr @G, align 8
  ret double %red
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.vector.reduce.fadd.v16f64(double, <16 x double>) #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,+c,+zvbb -O3 -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,+c,+zvbb -O3 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (9):

InputFunctionConfig
fixed-vectors-reduction-fp.1981de2066.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fwadd_v8f64-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d -O2
fixed-vectors-reduction-fp.24afad3132.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fwadd_v16f64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+f,+d,+xtheadba -O0 -code-model=small
fixed-vectors-reduction-fp.4d326d4126.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fwadd_v2f64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+d,+xtheadba -O2
fixed-vectors-reduction-fp.59071e44ad.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fadd_v4f64-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d -O3
fixed-vectors-reduction-fp.630deba0f9.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fwadd_v8f64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f -O3
fixed-vectors-reduction-fp.7a6fb15e3b.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fadd_v32f64-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d -O0
fixed-vectors-reduction-fp.90b6998bbe.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fwadd_v16f64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+c,+zvbb -O3
fixed-vectors-reduction-fp.91305c000f.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fwadd_v16f64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+f,+d -O2
fixed-vectors-reduction-fp.ca298d199c.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fwadd_v16f64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+zicsr -O3

Generated 2026-11-29 14:49 UTC.