fallback: legalize: G_PHI <N x f16>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_PHI <N x f16> M
Occurrences:4 in 3 configs, 2 test files, 26 more counted only
Snippet from:fixed-vectors-masked-load-fp.ea3003bd95.ll (mutant of fixed-vectors-masked-load-fp.ll) @masked_load_v128f16 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvfbfmin,+zba -O2
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global <128 x i1>

define <128 x half> @masked_load_v128f16(ptr %a, <128 x i1> %mask) {
  %LGV = load <128 x i1>, ptr @G.2, align 16
  %B = add <128 x i1> %mask, %LGV
  %load = call <128 x half> @llvm.masked.load.v128f16.p0(ptr align 8 %a, <128 x i1> %B, <128 x half> poison)
  ret <128 x half> %load
}

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

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

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvfbfmin,+zba -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvfbfmin,+zba -O2 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %1159:_(<128 x f16>) = G_PHI %1157:_(<128 x f16>), %bb.256, %1150:_(<128 x f16>), %bb.255 (in function: masked_load_v128f16)
warning: Instruction selection used fallback path for masked_load_v128f16

Occurrences (4):

InputFunctionConfig
fixed-vectors-expandload-fp.5a20cee072.ll (mutant of fixed-vectors-expandload-fp.ll)expandload_v2f16-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+f,+d,+zvfh,+zcb -O3
fixed-vectors-expandload-fp.5a20cee072.ll (mutant of fixed-vectors-expandload-fp.ll)expandload_v4f16-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+f,+d,+zvfh,+zcb -O3
fixed-vectors-masked-load-fp.df67bed2bf.ll (mutant of fixed-vectors-masked-load-fp.ll)masked_load_v4f16-mtriple=riscv32 -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin,+zvfh -O3
fixed-vectors-masked-load-fp.ea3003bd95.ll (mutant of fixed-vectors-masked-load-fp.ll)masked_load_v128f16-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvfbfmin,+zba -O2

Generated 2026-11-29 14:49 UTC.