Skip to content

rustc should use llvm.lifetime intrinsics to reduce stack space #15665

Closed
@zwarich

Description

@zwarich

It recently came up on dev-servo that Rust-compiled code is using an egregious amount of stack space. One possible solution that has been brought up is that we should use llvm.lifetime.start and llvm.lifetime.end intrinsics to reduce the amount of stack space that LLVM uses for our functions: http://llvm.org/docs/LangRef.html#llvm-lifetime-start-intrinsic.

An incomplete attempt at this has been made in an earlier PR: #12004, and the numbers there were promising.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationI-slowIssue: Problems and improvements with respect to performance of generated code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions