fallback: legalize: G_VECREDUCE_OR

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_VECREDUCE_OR M
Occurrences:4 in 4 configs, 2 test files, 2 more counted only
Snippet from:fixed-vectors-vreductions-mask.d77f38c4f9.ll (mutant of fixed-vectors-vreductions-mask.ll) @vreduce_or_v1i1 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -O2 -code-model=small
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define zeroext i1 @vreduce_or_v1i1(<1 x i1> %v) {
  %red = call i1 @llvm.vector.reduce.or.v1i1(<1 x i1> %v)
  %B = urem i1 %red, %red
  ret i1 %B
}

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

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

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -O2 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -O2 -code-model=small -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %2:_(i1) = G_VECREDUCE_OR %0:_(i1) (in function: vreduce_or_v1i1)
warning: Instruction selection used fallback path for vreduce_or_v1i1

Occurrences (4):

InputFunctionConfig
fixed-vectors-reduction-int.cd7769971e.ll (mutant of fixed-vectors-reduction-int.ll)vreduce_or_v1i16-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zcb -O3
fixed-vectors-reduction-int.f2630fafd0.ll (mutant of fixed-vectors-reduction-int.ll)vreduce_or_v1i32-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbkb -O1
fixed-vectors-vreductions-mask.478762f31c.ll (mutant of fixed-vectors-vreductions-mask.ll)vreduce_or_v1i1-mtriple=riscv32 -verify-machineinstrs -mattr=+m -O1
fixed-vectors-vreductions-mask.d77f38c4f9.ll (mutant of fixed-vectors-vreductions-mask.ll)vreduce_or_v1i1-mtriple=riscv32 -verify-machineinstrs -O2 -code-model=small

Generated 2026-11-29 14:49 UTC.