fallback: legalize: G_PHI <N x f32>

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

Snippet:

define <64 x float> @masked_load_v64f32(ptr %a, <64 x i1> %mask) {
  %A = alloca i8, align 1
  store i8 poison, ptr %A, align 1
  %load = call <64 x float> @llvm.masked.load.v64f32.p0(ptr align 8 %a, <64 x i1> %mask, <64 x float> poison)
  %E = extractelement <8 x i8> splat (i8 -128), i1 true
  store i8 %E, ptr %A, align 1
  ret <64 x float> %load
}

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

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

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zvfbfmin -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zvfbfmin -O3 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %575:_(<64 x f32>) = G_PHI %573:_(<64 x f32>), %bb.128, %566:_(<64 x f32>), %bb.127 (in function: masked_load_v64f32)
warning: Instruction selection used fallback path for masked_load_v64f32

Occurrences (4):

InputFunctionConfig
addc-adde-sube-subc.321f2dd326.ll (mutant of addc-adde-sube-subc.ll)subc_sube-mtriple=riscv32 -verify-machineinstrs -mattr=+d -O0
fixed-vectors-masked-load-fp.d4b8c1c033.ll (mutant of fixed-vectors-masked-load-fp.ll)masked_load_v64f32-mtriple=riscv64 -verify-machineinstrs -mattr=+zvfbfmin -O3
half-round-conv.e8fed3c8.146399c7.e772d081c9.ll (mutant of half-round-conv.e8fed3c8.146399c7.ll)test_floor_ui16-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64f -mattr=+zfh,+zvbb,+f,+zicond -O0
lsr-legaladdimm.659c5cb2fd.ll (mutant of lsr-legaladdimm.ll)main-mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadba,+zfa -O3

Generated 2026-11-29 14:49 UTC.