fallback: legalize: G_VECREDUCE_SMAX <N x i1>
| Run: | main-d9924131a4-20261128-102057 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_SMAX <N x i1> M |
| Occurrences: | 2 in 2 configs, 1 test files |
| Snippet from: | fixed-vectors-vreductions-mask.26e16c3ebd.ll (mutant of fixed-vectors-vreductions-mask.ll) @vreduce_smax_v256i1 via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+m,+v -verify-machineinstrs |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i1
define zeroext i1 @vreduce_smax_v256i1(<256 x i1> %v) {
%LGV = load i1, ptr @G, align 1
%red = call i1 @llvm.vector.reduce.smax.v256i1(<256 x i1> %v)
%B = xor i1 %red, %LGV
store i1 %B, ptr poison, align 1
ret i1 %red
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.vector.reduce.smax.v256i1(<256 x i1>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -mattr=+m,+v -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+m,+v -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %4:_(i1) = G_VECREDUCE_SMAX %0:_(<256 x i1>) (in function: vreduce_smax_v256i1)
warning: Instruction selection used fallback path for vreduce_smax_v256i1
Occurrences (2):
| Input | Function | Config |
|---|
| fixed-vectors-vreductions-mask.26e16c3ebd.ll (mutant of fixed-vectors-vreductions-mask.ll) | vreduce_smax_v256i1 | -mtriple=riscv32 -mattr=+m,+v -verify-machineinstrs |
| fixed-vectors-vreductions-mask.2dd82b7924.ll (mutant of fixed-vectors-vreductions-mask.ll) | vreduce_smax_v256i1 | -mtriple=riscv64 -mattr=+m,+v -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.