fallback: legalize: G_PHI <N x bf16>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_PHI <N x bf16> M |
| Occurrences: | 3 in 3 configs, 1 test files, 32 more counted only |
| Snippet from: | fixed-vectors-masked-load-fp.f4d3ef57f0.ll (mutant of fixed-vectors-masked-load-fp.ll) @masked_load_v4bf16 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+zvfbfmin -O0 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define <4 x bfloat> @masked_load_v4bf16(ptr %a, <4 x i1> %mask) {
%A = alloca double, align 8
store double poison, ptr %A, align 8
%B = frem double 4.200000e+01, 4.200000e+01
%load = call <4 x bfloat> @llvm.masked.load.v4bf16.p0(ptr align 8 %a, <4 x i1> %mask, <4 x bfloat> poison)
store double %B, ptr %A, align 8
ret <4 x bfloat> %load
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: read)
declare <4 x bfloat> @llvm.masked.load.v4bf16.p0(ptr captures(none), <4 x i1>, <4 x bfloat>) #0
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: read) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zvfbfmin -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zvfbfmin -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %44:_(<4 x bf16>) = G_PHI %42:_(<4 x bf16>), %bb.8, %35:_(<4 x bf16>), %bb.7 (in function: masked_load_v4bf16)
warning: Instruction selection used fallback path for masked_load_v4bf16
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-masked-load-fp.9217834f56.ll (mutant of fixed-vectors-masked-load-fp.ll) | masked_load_v4bf16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+v -O2 |
| fixed-vectors-masked-load-fp.df67bed2bf.ll (mutant of fixed-vectors-masked-load-fp.ll) | masked_load_v16bf16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin,+zvfh -O3 |
| fixed-vectors-masked-load-fp.f4d3ef57f0.ll (mutant of fixed-vectors-masked-load-fp.ll) | masked_load_v4bf16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zvfbfmin -O0 |
Generated 2026-11-29 14:49 UTC.