fallback: legalize: G_VECREDUCE_ADD <N x i1>
| Run: | main-d9924131a4-20261128-102057 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_ADD <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_add_v2i1 via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+m,+v -verify-machineinstrs |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define zeroext i1 @vreduce_add_v2i1(<2 x i1> %v) {
%red = call i1 @llvm.vector.reduce.add.v2i1(<2 x i1> %v)
%C = icmp sgt i1 %red, %red
store i1 %C, ptr poison, align 1
ret i1 %red
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.vector.reduce.add.v2i1(<2 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: %2:_(i1) = G_VECREDUCE_ADD %0:_(<2 x i1>) (in function: vreduce_add_v2i1)
warning: Instruction selection used fallback path for vreduce_add_v2i1
Occurrences (2):
| Input | Function | Config |
|---|
| fixed-vectors-vreductions-mask.2cb9d48d72.ll (mutant of fixed-vectors-vreductions-mask.ll) | vreduce_add_v2i1 | -mtriple=riscv64 -mattr=+m,+v -verify-machineinstrs |
| fixed-vectors-vreductions-mask.edd02ad7a5.ll (mutant of fixed-vectors-vreductions-mask.ll) | vreduce_add_v2i1 | -mtriple=riscv32 -mattr=+m,+v -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.