fallback: legalize: G_VECREDUCE_UMAX <N x i1>
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_UMAX <N x i1> M |
| Occurrences: | 5 in 5 configs, 2 test files, 28 more counted only |
| Snippet from: | fixed-vectors-reduction-mask-vp.09293a8220.ll (mutant of fixed-vectors-reduction-mask-vp.ll) @vpreduce_umax_v2i1 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -O3 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i32
define zeroext i1 @vpreduce_umax_v2i1(i1 zeroext %s, <2 x i1> %v, <2 x i1> %m, i32 zeroext %evl) {
%LGV = load i32, ptr @G, align 4
%C = icmp ule i32 %evl, %LGV
%r = call i1 @llvm.vp.reduce.umax.v2i1(i1 %s, <2 x i1> %v, <2 x i1> %m, i32 %evl)
store i1 %C, ptr poison, align 1
ret i1 %r
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.vp.reduce.umax.v2i1(i1, <2 x i1>, <2 x i1>, i32) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %29:_(i1) = G_VECREDUCE_UMAX %28:_(<2 x i1>) (in function: vpreduce_umax_v2i1)
warning: Instruction selection used fallback path for vpreduce_umax_v2i1
Occurrences (5):
Generated 2026-11-29 14:49 UTC.