fallback: legalize: G_VECREDUCE_OR <N x i8>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_VECREDUCE_OR <N x i8> M
Occurrences:7 in 7 configs, 1 test files, 3 more counted only
Snippet from:fixed-vectors-reduction-int.f91a4e132b.ll (mutant of fixed-vectors-reduction-int.ll) @vreduce_or_v4i8 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v -O3
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i8 @vreduce_or_v4i8(ptr %x) {
  %G = getelementptr i8, ptr %x, i32 2147483647
  %v = load <4 x i8>, ptr %G, align 4
  %red = call i8 @llvm.vector.reduce.or.v4i8(<4 x i8> %v)
  ret i8 %red
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.vector.reduce.or.v4i8(<4 x i8>) #0

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

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v -O3 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %4:_(i8) = G_VECREDUCE_OR %3:_(<4 x i8>) (in function: vreduce_or_v4i8)
warning: Instruction selection used fallback path for vreduce_or_v4i8

Occurrences (7):

InputFunctionConfig
fixed-vectors-reduction-int.071b515bb3.ll (mutant of fixed-vectors-reduction-int.ll)vreduce_or_v16i8-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+c -O3
fixed-vectors-reduction-int.3eed8edb67.ll (mutant of fixed-vectors-reduction-int.ll)vreduce_or_v128i8-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+zfhmin -O1
fixed-vectors-reduction-int.8eaf00b1f4.ll (mutant of fixed-vectors-reduction-int.ll)vreduce_or_v256i8-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+zicond -O0
fixed-vectors-reduction-int.a239111025.ll (mutant of fixed-vectors-reduction-int.ll)vreduce_or_v8i8-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v -O0
fixed-vectors-reduction-int.ab494a5ad4.ll (mutant of fixed-vectors-reduction-int.ll)vreduce_or_v64i8-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+a,+zicsr -O1 -code-model=medium
fixed-vectors-reduction-int.e656965092.ll (mutant of fixed-vectors-reduction-int.ll)vreduce_or_v128i8-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v -O0
fixed-vectors-reduction-int.f91a4e132b.ll (mutant of fixed-vectors-reduction-int.ll)vreduce_or_v4i8-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v -O3

Generated 2026-11-29 14:49 UTC.