fallback: legalize: G_PHI <N x bf16>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_PHI <N x bf16> M |
| Occurrences: | 3 in 2 configs, 1 test files, 9 more counted only |
| Snippet from: | fixed-vectors-masked-load-fp.720c1952c6.ll (mutant of fixed-vectors-masked-load-fp.ll) @masked_load_v32bf16 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin -O2 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i1
define <32 x bfloat> @masked_load_v32bf16(ptr %a, <32 x i1> %mask) {
%C = icmp sge i32 0, 1
%load = call <32 x bfloat> @llvm.masked.load.v32bf16.p0(ptr align 8 %a, <32 x i1> %mask, <32 x bfloat> poison)
store i1 %C, ptr @G, align 1
ret <32 x bfloat> %load
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: read)
declare <32 x bfloat> @llvm.masked.load.v32bf16.p0(ptr captures(none), <32 x i1>, <32 x bfloat>) #0
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: read) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %292:_(<32 x bf16>) = G_PHI %290:_(<32 x bf16>), %bb.64, %283:_(<32 x bf16>), %bb.63 (in function: masked_load_v32bf16)
warning: Instruction selection used fallback path for masked_load_v32bf16
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-masked-load-fp.720c1952c6.ll (mutant of fixed-vectors-masked-load-fp.ll) | masked_load_v32bf16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin -O2 |
| fixed-vectors-masked-load-fp.bc683dcc3b.ll (mutant of fixed-vectors-masked-load-fp.ll) | masked_load_v16bf16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zvfh,+zvfbfmin -O2 |
| fixed-vectors-masked-load-fp.bc683dcc3b.ll (mutant of fixed-vectors-masked-load-fp.ll) | masked_load_v128bf16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zvfh,+zvfbfmin -O2 |
Generated 2026-11-29 14:49 UTC.