You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cranelift: Support stack probes without external function call #2299
LLVM has support for performing the stack probes directly in the function prologue instead of calling an external function. (see rust-lang/rust#77885 for using this in Rust)
Benefit
This can be faster due to being able to unroll the stack probe loop. It also avoids having to provide an external stack probe function. This makes it possible to enable stack probing in cg_clif. (https://github.com/bjorn3/rustc_codegen_cranelift/issues/661)
Implementation
This should only be implemented for the machinst backends. It should probably be added to either the gen_prologue implementation or gen_prologue caller.
Alternatives
Keep using an external stack probe function with the associated drawbacks.
Activity
bjorn3 commentedon Sep 2, 2022
Neither AArch64, nor s390x has support for this yet.
afonso360 commentedon Sep 2, 2022
Right, should we reopen this or open issues against both backends?
bjorn3 commentedon Sep 2, 2022
Opened #4846 and #4847.