fallback: legalize: G_VECREDUCE_SMIN <N x i1>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_VECREDUCE_SMIN <N x i1> M
Occurrences:8 in 6 configs, 2 test files, 27 more counted only
Snippet from:fixed-vectors-reduction-mask-vp.09293a8220.ll (mutant of fixed-vectors-reduction-mask-vp.ll) @vpreduce_smin_v4i1 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -O3
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define zeroext i1 @vpreduce_smin_v4i1(i1 zeroext %s, <4 x i1> %v, <4 x i1> %m, i32 zeroext %evl) {
  %r = call i1 @llvm.vp.reduce.smin.v4i1(i1 %s, <4 x i1> %v, <4 x i1> %m, i32 %evl)
  %C = icmp eq i1 %r, %r
  ret i1 %C
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.vp.reduce.smin.v4i1(i1, <4 x i1>, <4 x i1>, i32) #0

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %24:_(i1) = G_VECREDUCE_SMIN %23:_(<4 x i1>) (in function: vpreduce_smin_v4i1)
warning: Instruction selection used fallback path for vpreduce_smin_v4i1

Occurrences (8):

InputFunctionConfig
fixed-vectors-reduction-mask-vp.09293a8220.ll (mutant of fixed-vectors-reduction-mask-vp.ll)vpreduce_smin_v4i1-mtriple=riscv64 -verify-machineinstrs -O3
fixed-vectors-reduction-mask-vp.23c6a898f8.ll (mutant of fixed-vectors-reduction-mask-vp.ll)vpreduce_smin_v4i1-mtriple=riscv64 -verify-machineinstrs -mattr=+zicsr -O3
fixed-vectors-vreductions-mask.0bee1babb0.ll (mutant of fixed-vectors-vreductions-mask.ll)vreduce_smin_v8i1-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbb -O1 -code-model=small
fixed-vectors-vreductions-mask.0bee1babb0.ll (mutant of fixed-vectors-vreductions-mask.ll)vreduce_smin_v128i1-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbb -O1 -code-model=small
fixed-vectors-vreductions-mask.2f5e7967cd.ll (mutant of fixed-vectors-vreductions-mask.ll)vreduce_smin_v64i1-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+d,+zicsr -O3
fixed-vectors-vreductions-mask.429280feae.ll (mutant of fixed-vectors-vreductions-mask.ll)vreduce_smin_v64i1-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zba -O2
fixed-vectors-vreductions-mask.8e5a54c510.ll (mutant of fixed-vectors-vreductions-mask.ll)vreduce_smin_v2i1-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v -O0 -code-model=small
fixed-vectors-vreductions-mask.8e5a54c510.ll (mutant of fixed-vectors-vreductions-mask.ll)vreduce_smin_v32i1-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v -O0 -code-model=small

Generated 2026-11-29 14:49 UTC.