fallback: legalize: G_PHI <N x i64>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_PHI <N x i64> M
Occurrences:4 in 4 configs, 4 test files, 159 more counted only
Snippet from:fixed-vectors-expandload-int.625b20e410.ll (mutant of fixed-vectors-expandload-int.ll) @expandload_v4i64 via llvm-extract
Config:-verify-machineinstrs -mtriple=riscv64 -mattr=+m -O3 -code-model=small
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <4 x i64> @expandload_v4i64(ptr %base, <4 x i64> %src0, <4 x i1> %mask) {
  %A = alloca i1, align 1
  store i1 poison, ptr %A, align 1
  %C = icmp ule i64 0, 42
  %res = call <4 x i64> @llvm.masked.expandload.v4i64.p0(ptr align 8 %base, <4 x i1> %mask, <4 x i64> %src0)
  store i1 %C, ptr %A, align 1
  ret <4 x i64> %res
}

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

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %46:_(<4 x i64>) = G_PHI %44:_(<4 x i64>), %bb.8, %38:_(<4 x i64>), %bb.7 (in function: expandload_v4i64)
warning: Instruction selection used fallback path for expandload_v4i64

Occurrences (4):

InputFunctionConfig
fixed-vectors-expandload-int.625b20e410.ll (mutant of fixed-vectors-expandload-int.ll)expandload_v4i64-verify-machineinstrs -mtriple=riscv64 -mattr=+m -O3 -code-model=small
machine-sink-jumptable-edge-split.792096d389.ll (mutant of machine-sink-jumptable-edge-split.ll)sink_through_jt-mtriple=riscv32 -mattr=+zba -O0 -verify-machineinstrs
phi.4b12e4d2db.ll (mutant of phi.ll)phi_i32-mtriple=riscv32 -mattr=+f,+zicond -O0 -code-model=medium -verify-machineinstrs
zero-call-used-regs-fp.d8901bcd90.ll (mutant of zero-call-used-regs-fp.ll)used_arg_float-verify-machineinstrs -mtriple=riscv32-unknown-unknown -mattr=+i,+m,+Zfh,+q,+zcb,+zbkb -O2

Generated 2026-11-29 14:49 UTC.