fallback: legalize: G_VECREDUCE_SMIN <N x i1>
| Run: | main-b577f07195-20261129-101839 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_SMIN <N x i1> M |
| Occurrences: | 2 in 2 configs, 1 test files |
| Snippet from: | fixed-vectors-vreductions-mask.2cb9d48d72.ll (mutant of fixed-vectors-vreductions-mask.ll) @vreduce_smin_v32i1 via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+m,+v -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i1
@G.1 = external global <32 x i1>
define zeroext i1 @vreduce_smin_v32i1(<32 x i1> %v) {
%LGV = load i1, ptr @G, align 1
%I = insertelement <32 x i1> %v, i1 %LGV, i128 42
%red = call i1 @llvm.vector.reduce.smin.v32i1(<32 x i1> %v)
store <32 x i1> %I, ptr @G.1, align 4
ret i1 %red
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.vector.reduce.smin.v32i1(<32 x i1>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -mattr=+m,+v -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -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_SMIN %0:_(<32 x i1>) (in function: vreduce_smin_v32i1)
warning: Instruction selection used fallback path for vreduce_smin_v32i1
Occurrences (2):
| Input | Function | Config |
|---|
| fixed-vectors-vreductions-mask.2cb9d48d72.ll (mutant of fixed-vectors-vreductions-mask.ll) | vreduce_smin_v32i1 | -mtriple=riscv64 -mattr=+m,+v -verify-machineinstrs |
| fixed-vectors-vreductions-mask.edd02ad7a5.ll (mutant of fixed-vectors-vreductions-mask.ll) | vreduce_smin_v32i1 | -mtriple=riscv32 -mattr=+m,+v -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.