fallback: legalize: G_VECREDUCE_SMAX <N x i1>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_SMAX <N x i1> M |
| Occurrences: | 5 in 5 configs, 2 test files, 19 more counted only |
| Snippet from: | fixed-vectors-vreductions-mask.e4f5fb0fc9.ll (mutant of fixed-vectors-vreductions-mask.ll) @vreduce_smax_v4i1 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+zbb,+f -O3 -code-model=medium |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define zeroext i1 @vreduce_smax_v4i1(<4 x i1> %v) {
%B = or <4 x i1> %v, %v
%red = call i1 @llvm.vector.reduce.smax.v4i1(<4 x i1> %B)
ret i1 %red
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.vector.reduce.smax.v4i1(<4 x i1>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+zbb,+f -O3 -code-model=medium -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+zbb,+f -O3 -code-model=medium -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %3:_(i1) = G_VECREDUCE_SMAX %0:_(<4 x i1>) (in function: vreduce_smax_v4i1)
warning: Instruction selection used fallback path for vreduce_smax_v4i1
Occurrences (5):
| Input | Function | Config |
|---|
| fixed-vectors-reduction-mask-vp.6876af4d50.ll (mutant of fixed-vectors-reduction-mask-vp.ll) | vpreduce_smax_v64i1 | -mtriple=riscv64 -verify-machineinstrs -O2 |
| fixed-vectors-reduction-mask-vp.e0634a56b0.ll (mutant of fixed-vectors-reduction-mask-vp.ll) | vpreduce_smax_v32i1 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbs -O0 |
| fixed-vectors-vreductions-mask.a5557a8d26.ll (mutant of fixed-vectors-vreductions-mask.ll) | vreduce_smax_v32i1 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v -O0 |
| fixed-vectors-vreductions-mask.ab9f0584c2.ll (mutant of fixed-vectors-vreductions-mask.ll) | vreduce_smax_v1024i1 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v -O3 |
| fixed-vectors-vreductions-mask.e4f5fb0fc9.ll (mutant of fixed-vectors-vreductions-mask.ll) | vreduce_smax_v4i1 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+zbb,+f -O3 -code-model=medium |
Generated 2026-11-29 14:49 UTC.