fallback: legalize: G_VECREDUCE_SEQ_FADD <N x f64>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_SEQ_FADD <N x f64> M |
| Occurrences: | 5 in 4 configs, 1 test files, 15 more counted only |
| Snippet from: | fixed-vectors-reduction-fp.eafd04ab2b.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_ord_fadd_v4f64 via llvm-extract |
| Config: | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+m,+zcb -O3 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define double @vreduce_ord_fadd_v4f64(ptr %x, double %s) {
%B = fmul double %s, %s
%v = load <4 x double>, ptr %x, align 32
%red = call double @llvm.vector.reduce.fadd.v4f64(double %B, <4 x double> %v)
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=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+m,+zcb -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,+m,+zcb -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %4:_(f64) = G_VECREDUCE_SEQ_FADD %2:_(f64), %3:_(<4 x f64>) (in function: vreduce_ord_fadd_v4f64)
warning: Instruction selection used fallback path for vreduce_ord_fadd_v4f64
Occurrences (5):
| Input | Function | Config |
|---|
| fixed-vectors-reduction-fp.92d97e931f.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_ord_fadd_v8f64 | -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_ord_fwadd_v2f64 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O1 |
| fixed-vectors-reduction-fp.9a1cbd3672.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_ord_fwadd_v8f64 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O1 |
| fixed-vectors-reduction-fp.a7b9db0329.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_ord_fwadd_v16f64 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O0 |
| fixed-vectors-reduction-fp.eafd04ab2b.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_ord_fadd_v4f64 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+m,+zcb -O3 |
Generated 2026-11-29 14:49 UTC.