fallback: legalize: G_VECREDUCE_UMIN <N x i1>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_VECREDUCE_UMIN <N x i1> M
Occurrences:5 in 5 configs, 2 test files, 30 more counted only
Snippet from:fixed-vectors-vreductions-mask.29d4ea7570.ll (mutant of fixed-vectors-vreductions-mask.ll) @vreduce_umin_v8i1 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zicsr -O3
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define zeroext i1 @vreduce_umin_v8i1(<8 x i1> %v) {
  %S = shufflevector <8 x i1> %v, <8 x i1> %v, <8 x i32> poison
  %red = call i1 @llvm.vector.reduce.umin.v8i1(<8 x i1> %S)
  ret i1 %red
}

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

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %3:_(i1) = G_VECREDUCE_UMIN %2:_(<8 x i1>) (in function: vreduce_umin_v8i1)
warning: Instruction selection used fallback path for vreduce_umin_v8i1

Occurrences (5):

InputFunctionConfig
fixed-vectors-reduction-mask-vp.0a33e8f1ae.ll (mutant of fixed-vectors-reduction-mask-vp.ll)vpreduce_umin_v32i1-mtriple=riscv64 -verify-machineinstrs -O2
fixed-vectors-reduction-mask-vp.b0a84303a8.ll (mutant of fixed-vectors-reduction-mask-vp.ll)vpreduce_umin_v32i1-mtriple=riscv32 -verify-machineinstrs -O3
fixed-vectors-vreductions-mask.29d4ea7570.ll (mutant of fixed-vectors-vreductions-mask.ll)vreduce_umin_v8i1-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zicsr -O3
fixed-vectors-vreductions-mask.429280feae.ll (mutant of fixed-vectors-vreductions-mask.ll)vreduce_umin_v128i1-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zba -O2
fixed-vectors-vreductions-mask.a95d3d7183.ll (mutant of fixed-vectors-vreductions-mask.ll)vreduce_umin_v256i1-mtriple=riscv32 -verify-machineinstrs -O0

Generated 2026-11-29 14:49 UTC.