fallback: legalize: G_PHI <N x bf16>
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_PHI <N x bf16> M |
| Occurrences: | 3 in 2 configs, 1 test files, 19 more counted only |
| Snippet from: | fixed-vectors-masked-load-fp.ce0f5f05b8.ll (mutant of fixed-vectors-masked-load-fp.ll) @masked_load_v16bf16 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zvfh,+zvfbfmin -O0 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.1 = external global double
define <16 x bfloat> @masked_load_v16bf16(ptr %a, <16 x i1> %mask) {
%B = fsub double 4.940660e-324, 0.000000e+00
%load = call <16 x bfloat> @llvm.masked.load.v16bf16.p0(ptr align 8 %a, <16 x i1> %mask, <16 x bfloat> poison)
store double %B, ptr @G.1, align 8
ret <16 x bfloat> %load
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: read)
declare <16 x bfloat> @llvm.masked.load.v16bf16.p0(ptr captures(none), <16 x i1>, <16 x bfloat>) #0
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: read) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zvfh,+zvfbfmin -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zvfh,+zvfbfmin -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %151:_(<16 x bf16>) = G_PHI %149:_(<16 x bf16>), %bb.32, %142:_(<16 x bf16>), %bb.31 (in function: masked_load_v16bf16)
warning: Instruction selection used fallback path for masked_load_v16bf16
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-masked-load-fp.a638b865e3.ll (mutant of fixed-vectors-masked-load-fp.ll) | masked_load_v8bf16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zvfh,+zvfbfmin,+zicond -O0 -code-model=small |
| fixed-vectors-masked-load-fp.ce0f5f05b8.ll (mutant of fixed-vectors-masked-load-fp.ll) | masked_load_v16bf16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zvfh,+zvfbfmin -O0 |
| fixed-vectors-masked-load-fp.ce0f5f05b8.ll (mutant of fixed-vectors-masked-load-fp.ll) | masked_load_v32bf16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zvfh,+zvfbfmin -O0 |
Generated 2026-11-29 14:49 UTC.