fallback: translate: phi <vscale x N x i8>
| Run: | main-b577f07195-20261129-101839 |
| Kind: | fallback |
| Category: | translate: phi <vscale x N x i8> |
| Occurrences: | 29 in 3 configs, 2 test files |
| Snippet from: | vxrm-insert.ll @test5 via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+v -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define <vscale x 1 x i8> @test5(<vscale x 1 x i8> %0, <vscale x 1 x i8> %1, <vscale x 1 x i8> %2, i32 %3, i1 %cond) #0 {
entry:
%a = call <vscale x 1 x i8> @llvm.riscv.vaadd.nxv1i8.nxv1i8.i32(<vscale x 1 x i8> poison, <vscale x 1 x i8> %0, <vscale x 1 x i8> %1, i32 0, i32 %3)
br i1 %cond, label %condblock, label %mergeblock
condblock: ; preds = %entry
%b = call <vscale x 1 x i8> @llvm.riscv.vaadd.nxv1i8.nxv1i8.i32(<vscale x 1 x i8> poison, <vscale x 1 x i8> %a, <vscale x 1 x i8> %2, i32 0, i32 %3)
br label %mergeblock
mergeblock: ; preds = %condblock, %entry
%c = phi <vscale x 1 x i8> [ %a, %entry ], [ %b, %condblock ]
ret <vscale x 1 x i8> %c
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare <vscale x 1 x i8> @llvm.riscv.vaadd.nxv1i8.nxv1i8.i32(<vscale x 1 x i8>, <vscale x 1 x i8>, <vscale x 1 x i8>, i32 immarg, i32) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -mattr=+v -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+v -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: phi: ' %c = phi <vscale x 1 x i8> [ %a, %entry ], [ %b, %condblock ]' (in function: test5)
warning: Instruction selection used fallback path for test5
Occurrences (29) (first 15):
Generated 2026-11-29 14:49 UTC.