fallback: legalize: G_PHI <N x f64>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_PHI <N x f64> M
Occurrences:4 in 4 configs, 3 test files, 42 more counted only
Snippet from:fixed-vectors-masked-load-fp.d4b8c1c033.ll (mutant of fixed-vectors-masked-load-fp.ll) @masked_load_v2f64 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:

@G = external global <2 x double>

define <2 x double> @masked_load_v2f64(ptr %a, <2 x i1> %mask) {
  %load = call <2 x double> @llvm.masked.load.v2f64.p0(ptr align 8 %a, <2 x i1> %mask, <2 x double> poison)
  store <2 x double> %load, ptr @G, align 16
  ret <2 x double> %load
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: read)
declare <2 x double> @llvm.masked.load.v2f64.p0(ptr captures(none), <2 x i1>, <2 x double>) #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: %23:_(<2 x f64>) = G_PHI %21:_(<2 x f64>), %bb.4, %14:_(<2 x f64>), %bb.3 (in function: masked_load_v2f64)
warning: Instruction selection used fallback path for masked_load_v2f64

Occurrences (4):

InputFunctionConfig
fixed-vectors-expandload-fp.5a20cee072.ll (mutant of fixed-vectors-expandload-fp.ll)expandload_v8f64-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+f,+d,+zvfh,+zcb -O3
fixed-vectors-masked-gather.05bd793fc4.ll (mutant of fixed-vectors-masked-gather.ll)mgather_baseidx_sext_v8i32_v8f64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+m,+d,+zfhmin,+zvfhmin,+zfbfmin,+zvfbfmin,+zve32f,+zvl128b,+zicond -O3
fixed-vectors-masked-load-fp.d4b8c1c033.ll (mutant of fixed-vectors-masked-load-fp.ll)masked_load_v2f64-mtriple=riscv64 -verify-machineinstrs -mattr=+zvfbfmin -O3
fixed-vectors-masked-load-fp.f4d3ef57f0.ll (mutant of fixed-vectors-masked-load-fp.ll)masked_load_v16f64-mtriple=riscv64 -verify-machineinstrs -mattr=+zvfbfmin -O0

Generated 2026-11-29 14:49 UTC.