fallback: legalize: G_VECREDUCE_OR <N x i32>

Run:main-db12fc36f6-20261127-110859
Kind:fallback
Category:legalize: G_VECREDUCE_OR <N x i32>
Occurrences:16 in 3 configs, 2 test files
Snippet from:vecreduce-or-constant-fold.ll @test_or_const via llvm-extract
Config:-mtriple=riscv64 -mattr=+v
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i32 @test_or_const() {
  %r = call i32 @llvm.vector.reduce.or.v4i32(<4 x i32> <i32 1, i32 -2, i32 4, i32 8>)
  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=riscv64 -mattr=+v -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+v -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (16) (first 15):

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
vecreduce-or-constant-fold.lltest_or_const-mtriple=riscv64 -mattr=+v
vecreduce-or-constant-fold.lltest_or_const_wide-mtriple=riscv64 -mattr=+v
vecreduce-or-constant-fold.lltest_or_nonconst-mtriple=riscv64 -mattr=+v
vecreduce-or-constant-fold.lltest_or_poison-mtriple=riscv64 -mattr=+v
vecreduce-or-constant-fold.lltest_or_undef-mtriple=riscv64 -mattr=+v
vecreduce-or-constant-fold.1946baa22c.ll (mutant of vecreduce-or-constant-fold.ll)test_or_undef-mtriple=riscv64 -mattr=+v
vecreduce-or-constant-fold.1ddae707f8.ll (mutant of vecreduce-or-constant-fold.ll)test_or_nonconst-mtriple=riscv64 -mattr=+v
vecreduce-or-constant-fold.1ddae707f8.ll (mutant of vecreduce-or-constant-fold.ll)test_or_poison-mtriple=riscv64 -mattr=+v
vecreduce-or-constant-fold.8d170ce52e.ll (mutant of vecreduce-or-constant-fold.ll)test_or_const-mtriple=riscv64 -mattr=+v
vecreduce-or-constant-fold.8d170ce52e.ll (mutant of vecreduce-or-constant-fold.ll)test_or_const_wide-mtriple=riscv64 -mattr=+v
vecreduce-or-constant-fold.8d170ce52e.ll (mutant of vecreduce-or-constant-fold.ll)test_or_nonconst-mtriple=riscv64 -mattr=+v
vecreduce-or-constant-fold.91d47388a1.ll (mutant of vecreduce-or-constant-fold.ll)test_or_const_wide-mtriple=riscv64 -mattr=+v
vecreduce-or-constant-fold.91d47388a1.ll (mutant of vecreduce-or-constant-fold.ll)test_or_nonconst-mtriple=riscv64 -mattr=+v

Generated 2026-11-29 14:49 UTC.