fallback: legalize: G_PHI <N x i32>
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_PHI <N x i32> M |
| Occurrences: | 4 in 4 configs, 4 test files, 120 more counted only |
| Snippet from: | fixed-vectors-masked-load-int.75f4dfb1fe.ll (mutant of fixed-vectors-masked-load-int.ll) @masked_load_v2i32 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:
@G.3 = external global i1
define <2 x i32> @masked_load_v2i32(ptr %a, <2 x i1> %mask) {
%load = call <2 x i32> @llvm.masked.load.v2i32.p0(ptr align 8 %a, <2 x i1> %mask, <2 x i32> poison)
%B = sub i1 true, true
store i1 %B, ptr @G.3, align 1
ret <2 x i32> %load
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: read)
declare <2 x i32> @llvm.masked.load.v2i32.p0(ptr captures(none), <2 x i1>, <2 x i32>) #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: %23:_(<2 x i32>) = G_PHI %21:_(<2 x i32>), %bb.4, %14:_(<2 x i32>), %bb.3 (in function: masked_load_v2i32)
warning: Instruction selection used fallback path for masked_load_v2i32
Occurrences (4):
| Input | Function | Config |
|---|
| copyprop.b7f82bb25a.ll (mutant of copyprop.ll) | copyprop_after_mbp | -mtriple=riscv64 -riscv-enable-copy-propagation=false -mattr=+zfh -O2 -verify-machineinstrs |
| double-convert.9733cb1e.ef308d9b.a54c1633.3407dbf1.a5226c28.84a31932.81bbaa0b.910f243f.26b9c5c5e7.ll (mutant of double-convert.9733cb1e.ef308d9b.a54c1633.3407dbf1.a5226c28.84a31932.81bbaa0b.910f243f.ll) | fcvt_wu_d_sat | -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+d,+f,+zvbb,+zfh,+zfa -O0 -code-model=small |
| fixed-vectors-masked-load-int.75f4dfb1fe.ll (mutant of fixed-vectors-masked-load-int.ll) | masked_load_v2i32 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zve32x -O3 |
| jumptable-section.a309b40c80.ll (mutant of jumptable-section.ll) | jt | -mtriple=riscv64 -mattr=+zvbb -O0 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.