fallback: legalize: G_VECREDUCE_OR <N x i1>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_OR <N x i1> M |
| Occurrences: | 5 in 4 configs, 2 test files, 27 more counted only |
| Snippet from: | fixed-vectors-reduction-mask-vp.228e069eb5.ll (mutant of fixed-vectors-reduction-mask-vp.ll) @vpreduce_or_v4i1 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -O2 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define zeroext i1 @vpreduce_or_v4i1(i1 zeroext %s, <4 x i1> %v, <4 x i1> %m, i32 zeroext %evl) {
%r = call i1 @llvm.vp.reduce.or.v4i1(i1 %s, <4 x i1> %v, <4 x i1> %m, i32 %evl)
br label %BB
BB: ; preds = %0
ret i1 %r
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.vp.reduce.or.v4i1(i1, <4 x i1>, <4 x i1>, i32) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %24:_(i1) = G_VECREDUCE_OR %23:_(<4 x i1>) (in function: vpreduce_or_v4i1)
warning: Instruction selection used fallback path for vpreduce_or_v4i1
Occurrences (5):
| Input | Function | Config |
|---|
| fixed-vectors-reduction-mask-vp.1ae13052e2.ll (mutant of fixed-vectors-reduction-mask-vp.ll) | vpreduce_or_v8i1 | -mtriple=riscv32 -verify-machineinstrs -mattr=+c -O1 |
| fixed-vectors-reduction-mask-vp.228e069eb5.ll (mutant of fixed-vectors-reduction-mask-vp.ll) | vpreduce_or_v4i1 | -mtriple=riscv64 -verify-machineinstrs -O2 |
| fixed-vectors-vreductions-mask.472b180c74.ll (mutant of fixed-vectors-vreductions-mask.ll) | vreduce_or_v512i1 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v,+zfa -O0 |
| fixed-vectors-vreductions-mask.e542632e92.ll (mutant of fixed-vectors-vreductions-mask.ll) | vreduce_or_v8i1 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+a,+zicsr -O3 -code-model=medium |
| fixed-vectors-vreductions-mask.e542632e92.ll (mutant of fixed-vectors-vreductions-mask.ll) | vreduce_or_v512i1 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+a,+zicsr -O3 -code-model=medium |
Generated 2026-11-29 14:49 UTC.