fallback: legalize: G_PHI <N x i64>
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_PHI <N x i64> M |
| Occurrences: | 5 in 5 configs, 5 test files, 103 more counted only |
| Snippet from: | fixed-vectors-masked-load-int.75f4dfb1fe.ll (mutant of fixed-vectors-masked-load-int.ll) @masked_load_v2i64 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zve32x -O3 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define <2 x i64> @masked_load_v2i64(ptr %a, <2 x i1> %mask) {
%A = alloca ptr, align 8
store ptr poison, ptr %A, align 8
%load = call <2 x i64> @llvm.masked.load.v2i64.p0(ptr align 8 %a, <2 x i1> %mask, <2 x i64> poison)
%G = getelementptr <2 x i64>, ptr %a, i1 false
store ptr %G, ptr %A, align 8
ret <2 x i64> %load
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: read)
declare <2 x i64> @llvm.masked.load.v2i64.p0(ptr captures(none), <2 x i1>, <2 x i64>) #0
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: read) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zve32x -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zve32x -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %26:_(<2 x i64>) = G_PHI %24:_(<2 x i64>), %bb.4, %17:_(<2 x i64>), %bb.3 (in function: masked_load_v2i64)
warning: Instruction selection used fallback path for masked_load_v2i64
Occurrences (5):
| Input | Function | Config |
|---|
| expandload.ce7081465f.ll (mutant of expandload.ll) | test_expandload_v4i64 | -verify-machineinstrs -mtriple=riscv64 -mattr=+d,+m,+zbb -O0 |
| fixed-vectors-masked-gather.daae1554f9.ll (mutant of fixed-vectors-masked-gather.ll) | mgather_baseidx_v8i16_v8i64 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+m,+d,+zvfh,+zfbfmin,+zvfbfmin,+zve32f,+zvl128b -O1 |
| fixed-vectors-masked-load-int.75f4dfb1fe.ll (mutant of fixed-vectors-masked-load-int.ll) | masked_load_v2i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zve32x -O3 |
| fixed-vectors-unaligned.4d7c10ee14.ll (mutant of fixed-vectors-unaligned.ll) | mgather_v2i64_align4 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+unaligned-vector-mem -O0 |
| target-abi-valid.cbf76d330f.ll (mutant of target-abi-valid.ll) | nothing | -mtriple=riscv64 -target-abi lp64e -O0 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.