fallback: legalize: G_PHI <N x f32>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_PHI <N x f32> M |
| Occurrences: | 4 in 3 configs, 3 test files, 92 more counted only |
| Snippet from: | fixed-vectors-masked-load-fp.d3314a61ff.ll (mutant of fixed-vectors-masked-load-fp.ll) @masked_load_v8f32 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin,+zba -O1 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.4 = external global i1
define <8 x float> @masked_load_v8f32(ptr %a, <8 x i1> %mask) {
%LGV = load i1, ptr @G.4, align 1
%load = call <8 x float> @llvm.masked.load.v8f32.p0(ptr align 8 %a, <8 x i1> %mask, <8 x float> poison)
br i1 %LGV, label %T, label %F
BB: ; preds = %F, %T
ret <8 x float> %load
T: ; preds = %T, %0
br i1 %LGV, label %T, label %BB
F: ; preds = %0
br label %BB
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: read)
declare <8 x float> @llvm.masked.load.v8f32.p0(ptr captures(none), <8 x i1>, <8 x float>) #0
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: read) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin,+zba -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin,+zba -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %78:_(<8 x f32>) = G_PHI %76:_(<8 x f32>), %bb.16, %69:_(<8 x f32>), %bb.15 (in function: masked_load_v8f32)
warning: Instruction selection used fallback path for masked_load_v8f32
Occurrences (4):
| Input | Function | Config |
|---|
| fixed-vectors-extract-i1.c7058523.be7e6e92.528d572d.9b3c391407.ll (mutant of fixed-vectors-extract-i1.c7058523.be7e6e92.528d572d.ll) | extractelt_v1i1 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zba,+zve32x,+zbb -O0 |
| fixed-vectors-masked-load-fp.d3314a61ff.ll (mutant of fixed-vectors-masked-load-fp.ll) | masked_load_v8f32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin,+zba -O1 |
| fixed-vectors-masked-load-fp.d3314a61ff.ll (mutant of fixed-vectors-masked-load-fp.ll) | masked_load_v7f32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin,+zba -O1 |
| loop-strength-reduce-loop-invar.254af37f28.ll (mutant of loop-strength-reduce-loop-invar.ll) | test | -mtriple=riscv32 -verify-machineinstrs -mattr=+d -O0 |
Generated 2026-11-29 14:49 UTC.