fallback: legalize: G_VECREDUCE_OR <N x i8>
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_OR <N x i8> M |
| Occurrences: | 3 in 3 configs, 2 test files, 9 more counted only |
| Snippet from: | fixed-vectors-reduction-int.3f69d1f727.ll (mutant of fixed-vectors-reduction-int.ll) @vreduce_or_v64i8 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zihintpause -O0 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define i8 @vreduce_or_v64i8(ptr %x) {
%B = fsub double 0.000000e+00, 4.200000e+01
%v = load <64 x i8>, ptr %x, align 64
%red = call i8 @llvm.vector.reduce.or.v64i8(<64 x i8> %v)
store double %B, ptr poison, align 8
ret i8 %red
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.vector.reduce.or.v64i8(<64 x i8>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zihintpause -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zihintpause -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %5:_(i8) = G_VECREDUCE_OR %4:_(<64 x i8>) (in function: vreduce_or_v64i8)
warning: Instruction selection used fallback path for vreduce_or_v64i8
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-reduction-int-vp.1ee228cfa9.ll (mutant of fixed-vectors-reduction-int-vp.ll) | vpreduce_or_v4i8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zcb -O3 |
| fixed-vectors-reduction-int.173e87632c.ll (mutant of fixed-vectors-reduction-int.ll) | vreduce_or_v128i8 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v -O2 -code-model=small |
| fixed-vectors-reduction-int.3f69d1f727.ll (mutant of fixed-vectors-reduction-int.ll) | vreduce_or_v64i8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zihintpause -O0 |
Generated 2026-11-29 14:49 UTC.