fallback: legalize: G_VECREDUCE_UMAX <N x i1>

Run:main-b577f07195-20261129-101839
Kind:fallback
Category:legalize: G_VECREDUCE_UMAX <N x i1> M
Occurrences:2 in 2 configs, 1 test files
Snippet from:fixed-vectors-vreductions-mask.26e16c3ebd.ll (mutant of fixed-vectors-vreductions-mask.ll) @vreduce_umax_v128i1 via llvm-extract
Config:-mtriple=riscv32 -mattr=+m,+v -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i32

define zeroext i1 @vreduce_umax_v128i1(<128 x i1> %v) {
  %LGV = load i32, ptr @G.1, align 4
  %B = urem i32 1, %LGV
  %red = call i1 @llvm.vector.reduce.umax.v128i1(<128 x i1> %v)
  store i32 %B, ptr @G.1, align 4
  ret i1 %red
}

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

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %6:_(i1) = G_VECREDUCE_UMAX %0:_(<128 x i1>) (in function: vreduce_umax_v128i1)
warning: Instruction selection used fallback path for vreduce_umax_v128i1

Occurrences (2):

InputFunctionConfig
fixed-vectors-vreductions-mask.26e16c3ebd.ll (mutant of fixed-vectors-vreductions-mask.ll)vreduce_umax_v128i1-mtriple=riscv32 -mattr=+m,+v -verify-machineinstrs
fixed-vectors-vreductions-mask.2dd82b7924.ll (mutant of fixed-vectors-vreductions-mask.ll)vreduce_umax_v128i1-mtriple=riscv64 -mattr=+m,+v -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.