fallback: legalize: G_VECREDUCE_UMAX <N x i1>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_VECREDUCE_UMAX <N x i1> M
Occurrences:11 in 9 configs, 2 test files, 12 more counted only
Snippet from:fixed-vectors-reduction-mask-vp.495a38681a.ll (mutant of fixed-vectors-reduction-mask-vp.ll) @vpreduce_umax_v8i1 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -O1
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define zeroext i1 @vpreduce_umax_v8i1(i1 zeroext %s, <8 x i1> %v, <8 x i1> %m, i32 zeroext %evl) {
  %B = srem <8 x i1> %m, %m
  %r = call i1 @llvm.vp.reduce.umax.v8i1(i1 %s, <8 x i1> %v, <8 x i1> %B, i32 %evl)
  ret i1 %r
}

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

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %29:_(i1) = G_VECREDUCE_UMAX %28:_(<8 x i1>) (in function: vpreduce_umax_v8i1)
warning: Instruction selection used fallback path for vpreduce_umax_v8i1

Occurrences (11):

InputFunctionConfig
fixed-vectors-reduction-mask-vp.4045b2427b.ll (mutant of fixed-vectors-reduction-mask-vp.ll)vpreduce_umax_v64i1-mtriple=riscv64 -verify-machineinstrs -O0
fixed-vectors-reduction-mask-vp.495a38681a.ll (mutant of fixed-vectors-reduction-mask-vp.ll)vpreduce_umax_v8i1-mtriple=riscv64 -verify-machineinstrs -O1
fixed-vectors-reduction-mask-vp.6876af4d50.ll (mutant of fixed-vectors-reduction-mask-vp.ll)vpreduce_umax_v16i1-mtriple=riscv64 -verify-machineinstrs -O2
fixed-vectors-vreductions-mask.122a23e166.ll (mutant of fixed-vectors-vreductions-mask.ll)vreduce_umax_v64i1-mtriple=riscv64 -verify-machineinstrs -mattr=+m -O3
fixed-vectors-vreductions-mask.2b356dce66.ll (mutant of fixed-vectors-vreductions-mask.ll)vreduce_umax_v2i1-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+c -O1 -code-model=small
fixed-vectors-vreductions-mask.2b356dce66.ll (mutant of fixed-vectors-vreductions-mask.ll)vreduce_umax_v64i1-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+c -O1 -code-model=small
fixed-vectors-vreductions-mask.478762f31c.ll (mutant of fixed-vectors-vreductions-mask.ll)vreduce_umax_v2i1-mtriple=riscv32 -verify-machineinstrs -mattr=+m -O1
fixed-vectors-vreductions-mask.7954e052bb.ll (mutant of fixed-vectors-vreductions-mask.ll)vreduce_umax_v64i1-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zvkb -O2
fixed-vectors-vreductions-mask.7954e052bb.ll (mutant of fixed-vectors-vreductions-mask.ll)vreduce_umax_v256i1-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zvkb -O2
fixed-vectors-vreductions-mask.91f550c174.ll (mutant of fixed-vectors-vreductions-mask.ll)vreduce_umax_v128i1-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+zve32x,+zbkb -O1 -code-model=small
fixed-vectors-vreductions-mask.a5557a8d26.ll (mutant of fixed-vectors-vreductions-mask.ll)vreduce_umax_v512i1-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v -O0

Generated 2026-11-29 14:49 UTC.