fallback: legalize: G_VECTOR_COMPRESS <N x i64>,<N x i1>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_VECTOR_COMPRESS <N x i64>,<N x i1> M |
| Occurrences: | 3 in 3 configs, 1 test files, 2 more counted only |
| Snippet from: | fixed-vectors-compress-int.f61701960c.ll (mutant of fixed-vectors-compress-int.ll) @vector_compress_v8i64_passthru via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -O2 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i128
define <8 x i64> @vector_compress_v8i64_passthru(<8 x i64> %passthru, <8 x i64> %v, <8 x i1> %mask) {
%B = add i128 18446744073709551616, -1
%ret = call <8 x i64> @llvm.experimental.vector.compress.v8i64(<8 x i64> %v, <8 x i1> %mask, <8 x i64> %passthru)
store i128 %B, ptr @G, align 4
ret <8 x i64> %ret
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare <8 x i64> @llvm.experimental.vector.compress.v8i64(<8 x i64>, <8 x i1>, <8 x i64>) #0
attributes #0 = { nocallback nofree nosync nounwind 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: %10:_(<8 x i64>) = G_VECTOR_COMPRESS %1:_, %2:_(<8 x i1>), %0:_ (in function: vector_compress_v8i64_passthru)
warning: Instruction selection used fallback path for vector_compress_v8i64_passthru
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-compress-int.1ce9309057.ll (mutant of fixed-vectors-compress-int.ll) | vector_compress_v8i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m -O2 |
| fixed-vectors-compress-int.35853e86af.ll (mutant of fixed-vectors-compress-int.ll) | vector_compress_v8i64_passthru | -mtriple=riscv32 -verify-machineinstrs -mattr=+m -O3 -code-model=medium |
| fixed-vectors-compress-int.f61701960c.ll (mutant of fixed-vectors-compress-int.ll) | vector_compress_v8i64_passthru | -mtriple=riscv64 -verify-machineinstrs -O2 |
Generated 2026-11-29 14:49 UTC.