fallback: translate: call llvm.stacksave.p0
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: call llvm.stacksave.p0 M |
| Occurrences: | 3 in 3 configs, 1 test files, 4 more counted only |
| Snippet from: | xqccmp-push-pop-popret.411f14d6b1.ll (mutant of xqccmp-push-pop-popret.ll) @alloca via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+xqccmp,+save-restore,+zfinx,+zihintpause -O1 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.1 = external global ptr
declare void @notdead(ptr)
define void @alloca(i32 %n) {
%sp = call ptr @llvm.stacksave.p0()
%addr = alloca i8, i32 %n, align 1
%G = getelementptr i32, ptr %sp, i32 %n
call void @notdead(ptr %addr)
call void @llvm.stackrestore.p0(ptr %sp)
store ptr %G, ptr @G.1, align 8
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #0
attributes #0 = { nocallback nofree nosync nounwind willreturn }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+xqccmp,+save-restore,+zfinx,+zihintpause -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+xqccmp,+save-restore,+zfinx,+zihintpause -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.stacksave.p0: ' %sp = call ptr @llvm.stacksave.p0()' (in function: alloca)
warning: Instruction selection used fallback path for alloca
Occurrences (3):
| Input | Function | Config |
|---|
| xqccmp-push-pop-popret.411f14d6b1.ll (mutant of xqccmp-push-pop-popret.ll) | alloca | -mtriple=riscv64 -verify-machineinstrs -mattr=+xqccmp,+save-restore,+zfinx,+zihintpause -O1 |
| xqccmp-push-pop-popret.5a511af6f1.ll (mutant of xqccmp-push-pop-popret.ll) | alloca | -mtriple=riscv64 -frame-pointer=all -verify-machineinstrs -mattr=+xqccmp,+zhinx -O1 |
| xqccmp-push-pop-popret.94546c6617.ll (mutant of xqccmp-push-pop-popret.ll) | alloca | -mtriple=riscv64 -frame-pointer=all -verify-machineinstrs -mattr=+xqccmp,+zdinx,+zhinx -O2 |
Generated 2026-11-29 14:49 UTC.