fallback: legalize: G_VECREDUCE_OR s32,<4 x s32>

Run:main-bc8218b282-20261015-074651
Kind:fallback
Category:legalize: G_VECREDUCE_OR s32,<4 x s32>
Occurrences:2 in 2 configs, 1 test files
Snippet from:double_reduct.ll @or_i32 via llvm-extract
Config:-mtriple=riscv32 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=ilp32d -verify-machineinstrs
Local check:reproduces at bc8218b282
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i32 @or_i32(<4 x i32> %a, <4 x i32> %b) {
  %r1 = call i32 @llvm.vector.reduce.or.v4i32(<4 x i32> %a)
  %r2 = call i32 @llvm.vector.reduce.or.v4i32(<4 x i32> %b)
  %r = or i32 %r1, %r2
  ret i32 %r
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.or.v4i32(<4 x i32>) #0

attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

llc -mtriple=riscv32 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=ilp32d -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=ilp32d -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %5:_(s32) = G_VECREDUCE_OR %1:_(<4 x s32>) (in function: or_i32)
warning: Instruction selection used fallback path for or_i32

Occurrences (2):

InputFunctionConfig
double_reduct.llor_i32-mtriple=riscv32 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=ilp32d -verify-machineinstrs
double_reduct.llor_i32-mtriple=riscv64 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=lp64d -verify-machineinstrs

Generated 2026-10-15 08:05 UTC.