fallback: legalize: G_VECREDUCE_UMIN <N x i1>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_UMIN <N x i1> M |
| Occurrences: | 5 in 4 configs, 2 test files, 23 more counted only |
| Snippet from: | fixed-vectors-reduction-mask-vp.a4148eadfe.ll (mutant of fixed-vectors-reduction-mask-vp.ll) @vpreduce_umin_v32i1 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -O0 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.2 = external global i1
define zeroext i1 @vpreduce_umin_v32i1(i1 zeroext %s, <32 x i1> %v, <32 x i1> %m, i32 zeroext %evl) {
%LGV = load i1, ptr @G.2, align 1
%r = call i1 @llvm.vp.reduce.umin.v32i1(i1 %s, <32 x i1> %v, <32 x i1> %m, i32 %evl)
%B = sub i1 %r, %LGV
store i1 %B, ptr poison, align 1
ret i1 %r
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.vp.reduce.umin.v32i1(i1, <32 x i1>, <32 x i1>, i32) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %53:_(i1) = G_VECREDUCE_UMIN %50:_(<32 x i1>) (in function: vpreduce_umin_v32i1)
warning: Instruction selection used fallback path for vpreduce_umin_v32i1
Occurrences (5):
Generated 2026-11-29 14:49 UTC.