fallback: legalize: G_PHI <N x f16>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_PHI <N x f16> M
Occurrences:4 in 3 configs, 2 test files, 14 more counted only
Snippet from:fixed-vectors-expandload-fp.ceaf0b4815.ll (mutant of fixed-vectors-expandload-fp.ll) @expandload_v4f16 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zfh -O1 -code-model=medium
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <4 x half> @expandload_v4f16(ptr %base, <4 x half> %src0, <4 x i1> %mask) {
  %res = call <4 x half> @llvm.masked.expandload.v4f16.p0(ptr align 2 %base, <4 x i1> %mask, <4 x half> %src0)
  %B = xor <vscale x 8 x i8> zeroinitializer, zeroinitializer
  store <vscale x 8 x i8> %B, ptr poison, align 8
  ret <4 x half> %res
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(read)
declare <4 x half> @llvm.masked.expandload.v4f16.p0(ptr captures(none), <4 x i1>, <4 x half>) #0

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(read) }

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zfh -O1 -code-model=medium -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zfh -O1 -code-model=medium -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %47:_(<4 x f16>) = G_PHI %45:_(<4 x f16>), %bb.8, %39:_(<4 x f16>), %bb.7 (in function: expandload_v4f16)
warning: Instruction selection used fallback path for expandload_v4f16

Occurrences (4):

InputFunctionConfig
fixed-vectors-expandload-fp.ceaf0b4815.ll (mutant of fixed-vectors-expandload-fp.ll)expandload_v4f16-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zfh -O1 -code-model=medium
fixed-vectors-expandload-fp.ceaf0b4815.ll (mutant of fixed-vectors-expandload-fp.ll)expandload_v8f16-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+f,+d,+zfh -O1 -code-model=medium
fixed-vectors-masked-load-fp.720c1952c6.ll (mutant of fixed-vectors-masked-load-fp.ll)masked_load_v128f16-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_v32f16-mtriple=riscv64 -verify-machineinstrs -mattr=+zvfh,+zvfbfmin -O2

Generated 2026-11-29 14:49 UTC.