fallback: legalize: G_VECREDUCE_UMIN <N x i16>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_UMIN <N x i16> M |
| Occurrences: | 3 in 3 configs, 1 test files, 2 more counted only |
| Snippet from: | fixed-vectors-reduction-int.cd7769971e.ll (mutant of fixed-vectors-reduction-int.ll) @vreduce_umin_v128i16 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zcb -O3 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define i16 @vreduce_umin_v128i16(ptr %x) {
%A = alloca i1, align 1
store i1 poison, ptr %A, align 1
%C = icmp uge i16 -1, 42
%v = load <128 x i16>, ptr %x, align 256
%red = call i16 @llvm.vector.reduce.umin.v128i16(<128 x i16> %v)
store i1 %C, ptr %A, align 1
ret i16 %red
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.vector.reduce.umin.v128i16(<128 x i16>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zcb -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zcb -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %7:_(i16) = G_VECREDUCE_UMIN %6:_(<128 x i16>) (in function: vreduce_umin_v128i16)
warning: Instruction selection used fallback path for vreduce_umin_v128i16
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-reduction-int.49632b58b4.ll (mutant of fixed-vectors-reduction-int.ll) | vreduce_umin_v128i16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+zicond -O2 |
| fixed-vectors-reduction-int.cd7769971e.ll (mutant of fixed-vectors-reduction-int.ll) | vreduce_umin_v128i16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zcb -O3 |
| fixed-vectors-reduction-int.f91a4e132b.ll (mutant of fixed-vectors-reduction-int.ll) | vreduce_umin_v2i16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v -O3 |
Generated 2026-11-29 14:49 UTC.