fallback: legalize: G_PHI <N x i32>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_PHI <N x i32> M |
| Occurrences: | 5 in 4 configs, 4 test files, 267 more counted only |
| Snippet from: | fixed-vectors-expandload-int.625b20e410.ll (mutant of fixed-vectors-expandload-int.ll) @expandload_v4i32 via llvm-extract |
| Config: | -verify-machineinstrs -mtriple=riscv64 -mattr=+m -O3 -code-model=small |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.4 = external global <2 x i64>
@G.5 = external global <2 x i64>
define <4 x i32> @expandload_v4i32(ptr %base, <4 x i32> %src0, <4 x i1> %mask) {
%LGV = load <2 x i64>, ptr @G.4, align 16
%B = mul <2 x i64> splat (i64 1), %LGV
%res = call <4 x i32> @llvm.masked.expandload.v4i32.p0(ptr align 4 %base, <4 x i1> %mask, <4 x i32> %src0)
store <2 x i64> %B, ptr @G.5, align 16
ret <4 x i32> %res
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(read)
declare <4 x i32> @llvm.masked.expandload.v4i32.p0(ptr captures(none), <4 x i1>, <4 x i32>) #0
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(read) }
Reproduce:
llc -verify-machineinstrs -mtriple=riscv64 -mattr=+m -O3 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -verify-machineinstrs -mtriple=riscv64 -mattr=+m -O3 -code-model=small -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %48:_(<4 x i32>) = G_PHI %46:_(<4 x i32>), %bb.8, %40:_(<4 x i32>), %bb.7 (in function: expandload_v4i32)
warning: Instruction selection used fallback path for expandload_v4i32
Occurrences (5):
| Input | Function | Config |
|---|
| double-convert.9733cb1e.ef308d9b.a54c1633.3407dbf1.a5226c28.b6fe42c2.eb536c71.61b77bc3.58219dfd.4d20b6c002.ll (mutant of double-convert.9733cb1e.ef308d9b.a54c1633.3407dbf1.a5226c28.b6fe42c2.eb536c71.61b77bc3.58219dfd.ll) | fcvt_wu_d_sat | -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+d,+zicond,+zvbb,+zba -O0 |
| expandload.9b0cbaf7e7.ll (mutant of expandload.ll) | test_expandload_v8i32 | -verify-machineinstrs -mtriple=riscv64 -mattr=+d,+m,+zbb -O2 |
| fixed-vectors-expandload-int.625b20e410.ll (mutant of fixed-vectors-expandload-int.ll) | expandload_v4i32 | -verify-machineinstrs -mtriple=riscv64 -mattr=+m -O3 -code-model=small |
| fixed-vectors-expandload-int.625b20e410.ll (mutant of fixed-vectors-expandload-int.ll) | expandload_v8i32 | -verify-machineinstrs -mtriple=riscv64 -mattr=+m -O3 -code-model=small |
| load-setcc-combine.1dad79c8ff.ll (mutant of load-setcc-combine.ll) | zext_nonneg_load_i16 | -mtriple=riscv64 -mattr=+zcb -O0 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.