fallback: legalize: G_VECREDUCE_SMIN <N x i1>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_SMIN <N x i1> M |
| Occurrences: | 5 in 4 configs, 2 test files, 38 more counted only |
| Snippet from: | fixed-vectors-reduction-mask-vp.eac5ba2921.ll (mutant of fixed-vectors-reduction-mask-vp.ll) @vpreduce_smin_v8i1 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfh -O0 -code-model=small |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define zeroext i1 @vpreduce_smin_v8i1(i1 zeroext %s, <8 x i1> %v, <8 x i1> %m, i32 zeroext %evl) {
%A = alloca i1, align 1
store i1 poison, ptr %A, align 1
%r = call i1 @llvm.vp.reduce.smin.v8i1(i1 %s, <8 x i1> %v, <8 x i1> %m, i32 %evl)
%C = icmp sle i1 %s, %s
store i1 %C, ptr %A, align 1
ret i1 %r
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.vp.reduce.smin.v8i1(i1, <8 x i1>, <8 x i1>, i32) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zfh -O0 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zfh -O0 -code-model=small -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %27:_(i1) = G_VECREDUCE_SMIN %26:_(<8 x i1>) (in function: vpreduce_smin_v8i1)
warning: Instruction selection used fallback path for vpreduce_smin_v8i1
Occurrences (5):
| Input | Function | Config |
|---|
| fixed-vectors-reduction-mask-vp.93f9b1a6e9.ll (mutant of fixed-vectors-reduction-mask-vp.ll) | vpreduce_smin_v16i1 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zfa -O3 |
| fixed-vectors-reduction-mask-vp.eac5ba2921.ll (mutant of fixed-vectors-reduction-mask-vp.ll) | vpreduce_smin_v8i1 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfh -O0 -code-model=small |
| fixed-vectors-reduction-mask-vp.eac5ba2921.ll (mutant of fixed-vectors-reduction-mask-vp.ll) | vpreduce_smin_v64i1 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfh -O0 -code-model=small |
| fixed-vectors-vreductions-mask.49edce4c63.ll (mutant of fixed-vectors-vreductions-mask.ll) | vreduce_smin_v256i1 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh -O0 |
| fixed-vectors-vreductions-mask.92088d4c30.ll (mutant of fixed-vectors-vreductions-mask.ll) | vreduce_smin_v4i1 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m -O0 -code-model=medium |
Generated 2026-11-29 14:49 UTC.